Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 """Processing configuration classes.""" | 2 """Processing configuration classes.""" |
3 | 3 |
4 from plaso.containers import interface | 4 from plaso.containers import interface |
5 | 5 |
6 | 6 |
7 class CredentialConfiguration(interface.AttributeContainer): | 7 class CredentialConfiguration(interface.AttributeContainer): |
8 """Configuration settings for a credential. | 8 """Configuration settings for a credential. |
9 | 9 |
10 Attributes: | 10 Attributes: |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 super(InputSourceConfiguration, self).__init__() | 86 super(InputSourceConfiguration, self).__init__() |
87 self.mount_path = None | 87 self.mount_path = None |
88 | 88 |
89 | 89 |
90 class ProfilingConfiguration(interface.AttributeContainer): | 90 class ProfilingConfiguration(interface.AttributeContainer): |
91 """Configuration settings for profiling. | 91 """Configuration settings for profiling. |
92 | 92 |
93 Attributes: | 93 Attributes: |
94 directory (str): path to the directory where the profiling sample files | 94 directory (str): path to the directory where the profiling sample files |
95 should be stored. | 95 should be stored. |
96 profilers (str): profilers. | 96 profilers (set(str)): names of the profilers to enable. |
onager
2017/04/09 18:44:01
This isn't a string any more, it's a set of string
Joachim Metz
2017/04/10 04:04:10
Done.
| |
97 Supported profilers are: | 97 Supported profilers are: |
98 | 98 |
99 * 'guppy' to profile memory usage using guppy; | 99 * 'guppy', which profiles memory usage using guppy; |
onager
2017/04/09 18:44:01
Please rewrite these to something like "guppy, whi
Joachim Metz
2017/04/10 04:04:10
Done.
| |
100 * 'memory' to profile memory usage; | 100 * 'memory', which profiles memory usage; |
101 * 'parsers' to profile CPU time consumed by individual parsers; | 101 * 'parsers', which profiles CPU time consumed by individual parsers; |
102 * 'processing' to profile CPU time consumed by different parts of | 102 * 'processing', which profiles CPU time consumed by different parts of |
103 the processing; | 103 processing; |
104 * 'serializers' to profile CPU time consumed by individual | 104 * 'serializers', which profiles CPU time consumed by individual |
105 serializers. | 105 serializers. |
106 sample_rate (int): the profiling sample rate. Contains the number of event | 106 sample_rate (int): the profiling sample rate. Contains the number of event |
107 sources processed. | 107 sources processed. |
108 """ | 108 """ |
109 CONTAINER_TYPE = u'profiling_configuration' | 109 CONTAINER_TYPE = u'profiling_configuration' |
110 | 110 |
111 def __init__(self): | 111 def __init__(self): |
112 """Initializes a profiling configuration object.""" | 112 """Initializes a profiling configuration object.""" |
113 super(ProfilingConfiguration, self).__init__() | 113 super(ProfilingConfiguration, self).__init__() |
114 self.directory = None | 114 self.directory = None |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
184 self.data_location = None | 184 self.data_location = None |
185 self.debug_output = False | 185 self.debug_output = False |
186 self.event_extraction = EventExtractionConfiguration() | 186 self.event_extraction = EventExtractionConfiguration() |
187 self.extraction = ExtractionConfiguration() | 187 self.extraction = ExtractionConfiguration() |
188 self.filter_file = None | 188 self.filter_file = None |
189 self.input_source = InputSourceConfiguration() | 189 self.input_source = InputSourceConfiguration() |
190 self.parser_filter_expression = None | 190 self.parser_filter_expression = None |
191 self.preferred_year = None | 191 self.preferred_year = None |
192 self.profiling = ProfilingConfiguration() | 192 self.profiling = ProfilingConfiguration() |
193 self.temporary_directory = None | 193 self.temporary_directory = None |
LEFT | RIGHT |