Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: base/trace_event/trace_config.h

Issue 2542853002: [tracing] Introduce config to setup memory-infra peak detection (Closed)
Patch Set: Fixes. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 10 #include <memory>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Specifies the memory dump config for tracing. 47 // Specifies the memory dump config for tracing.
48 // Used only when "memory-infra" category is enabled. 48 // Used only when "memory-infra" category is enabled.
49 struct BASE_EXPORT MemoryDumpConfig { 49 struct BASE_EXPORT MemoryDumpConfig {
50 MemoryDumpConfig(); 50 MemoryDumpConfig();
51 MemoryDumpConfig(const MemoryDumpConfig& other); 51 MemoryDumpConfig(const MemoryDumpConfig& other);
52 ~MemoryDumpConfig(); 52 ~MemoryDumpConfig();
53 53
54 // Specifies the triggers in the memory dump config. 54 // Specifies the triggers in the memory dump config.
55 struct Trigger { 55 struct Trigger {
56 uint32_t periodic_interval_ms; 56 uint32_t min_time_between_dumps_ms;
57 MemoryDumpLevelOfDetail level_of_detail; 57 MemoryDumpLevelOfDetail level_of_detail;
58 MemoryDumpType trigger_type;
58 }; 59 };
59 60
60 // Specifies the configuration options for the heap profiler. 61 // Specifies the configuration options for the heap profiler.
61 struct HeapProfiler { 62 struct HeapProfiler {
62 // Default value for |breakdown_threshold_bytes|. 63 // Default value for |breakdown_threshold_bytes|.
63 enum { kDefaultBreakdownThresholdBytes = 1024 }; 64 enum { kDefaultBreakdownThresholdBytes = 1024 };
64 65
65 HeapProfiler(); 66 HeapProfiler();
66 67
67 // Reset the options to default. 68 // Reset the options to default.
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 StringList disabled_categories_; 321 StringList disabled_categories_;
321 StringList excluded_categories_; 322 StringList excluded_categories_;
322 StringList synthetic_delays_; 323 StringList synthetic_delays_;
323 EventFilters event_filters_; 324 EventFilters event_filters_;
324 }; 325 };
325 326
326 } // namespace trace_event 327 } // namespace trace_event
327 } // namespace base 328 } // namespace base
328 329
329 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ 330 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698