OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_TRACE_EVENT_TRACE_CONFIG_H_ | 5 #ifndef BASE_TRACE_EVENT_TRACE_CONFIG_H_ |
6 #define BASE_TRACE_EVENT_TRACE_CONFIG_H_ | 6 #define BASE_TRACE_EVENT_TRACE_CONFIG_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 // Specifies the memory dump config for tracing. | 45 // Specifies the memory dump config for tracing. |
46 // Used only when "memory-infra" category is enabled. | 46 // Used only when "memory-infra" category is enabled. |
47 struct BASE_EXPORT MemoryDumpConfig { | 47 struct BASE_EXPORT MemoryDumpConfig { |
48 MemoryDumpConfig(); | 48 MemoryDumpConfig(); |
49 MemoryDumpConfig(const MemoryDumpConfig& other); | 49 MemoryDumpConfig(const MemoryDumpConfig& other); |
50 ~MemoryDumpConfig(); | 50 ~MemoryDumpConfig(); |
51 | 51 |
52 // Specifies the triggers in the memory dump config. | 52 // Specifies the triggers in the memory dump config. |
53 struct Trigger { | 53 struct Trigger { |
54 uint32_t periodic_interval_ms; | 54 uint32_t min_time_between_dumps_ms; |
55 MemoryDumpLevelOfDetail level_of_detail; | 55 MemoryDumpLevelOfDetail level_of_detail; |
| 56 MemoryDumpType trigger_type; |
56 }; | 57 }; |
57 | 58 |
58 // Specifies the configuration options for the heap profiler. | 59 // Specifies the configuration options for the heap profiler. |
59 struct HeapProfiler { | 60 struct HeapProfiler { |
60 // Default value for |breakdown_threshold_bytes|. | 61 // Default value for |breakdown_threshold_bytes|. |
61 enum { kDefaultBreakdownThresholdBytes = 1024 }; | 62 enum { kDefaultBreakdownThresholdBytes = 1024 }; |
62 | 63 |
63 HeapProfiler(); | 64 HeapProfiler(); |
64 | 65 |
65 // Reset the options to default. | 66 // Reset the options to default. |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 StringList disabled_categories_; | 318 StringList disabled_categories_; |
318 StringList excluded_categories_; | 319 StringList excluded_categories_; |
319 StringList synthetic_delays_; | 320 StringList synthetic_delays_; |
320 EventFilters event_filters_; | 321 EventFilters event_filters_; |
321 }; | 322 }; |
322 | 323 |
323 } // namespace trace_event | 324 } // namespace trace_event |
324 } // namespace base | 325 } // namespace base |
325 | 326 |
326 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ | 327 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ |
OLD | NEW |