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

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

Issue 1337943003: [tracing] Non-functional refactor of memory dump arg names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows test Created 5 years, 3 months 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/base_export.h" 11 #include "base/base_export.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/trace_event/memory_dump_provider.h" 13 #include "base/trace_event/memory_dump_request_args.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 15
16 namespace base { 16 namespace base {
17 namespace trace_event { 17 namespace trace_event {
18 18
19 // Options determines how the trace buffer stores data. 19 // Options determines how the trace buffer stores data.
20 enum TraceRecordMode { 20 enum TraceRecordMode {
21 // Record until the trace buffer is full. 21 // Record until the trace buffer is full.
22 RECORD_UNTIL_FULL, 22 RECORD_UNTIL_FULL,
23 23
24 // Record until the user ends the trace. The trace buffer is a fixed size 24 // Record until the user ends the trace. The trace buffer is a fixed size
25 // and we use it as a ring buffer during recording. 25 // and we use it as a ring buffer during recording.
26 RECORD_CONTINUOUSLY, 26 RECORD_CONTINUOUSLY,
27 27
28 // Record until the trace buffer is full, but with a huge buffer size. 28 // Record until the trace buffer is full, but with a huge buffer size.
29 RECORD_AS_MUCH_AS_POSSIBLE, 29 RECORD_AS_MUCH_AS_POSSIBLE,
30 30
31 // Echo to console. Events are discarded. 31 // Echo to console. Events are discarded.
32 ECHO_TO_CONSOLE, 32 ECHO_TO_CONSOLE,
33 }; 33 };
34 34
35 class BASE_EXPORT TraceConfig { 35 class BASE_EXPORT TraceConfig {
36 public: 36 public:
37 typedef std::vector<std::string> StringList; 37 typedef std::vector<std::string> StringList;
38 38
39 // Specifies the memory dump config for tracing. Used only when 39 // Specifies the memory dump config for tracing. Used only when
40 // "memory-infra" category is enabled. 40 // "memory-infra" category is enabled.
41 struct MemoryDumpTriggerConfig { 41 struct MemoryDumpTriggerConfig {
42 uint32 periodic_interval_ms; 42 uint32 periodic_interval_ms;
43 MemoryDumpArgs::LevelOfDetail level_of_detail; 43 MemoryDumpLevelOfDetail level_of_detail;
44 }; 44 };
45 45
46 typedef std::vector<MemoryDumpTriggerConfig> MemoryDumpConfig; 46 typedef std::vector<MemoryDumpTriggerConfig> MemoryDumpConfig;
47 47
48 TraceConfig(); 48 TraceConfig();
49 49
50 // Create TraceConfig object from category filter and trace options strings. 50 // Create TraceConfig object from category filter and trace options strings.
51 // 51 //
52 // |category_filter_string| is a comma-delimited list of category wildcards. 52 // |category_filter_string| is a comma-delimited list of category wildcards.
53 // A category can have an optional '-' prefix to make it an excluded category. 53 // A category can have an optional '-' prefix to make it an excluded category.
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 StringList included_categories_; 229 StringList included_categories_;
230 StringList disabled_categories_; 230 StringList disabled_categories_;
231 StringList excluded_categories_; 231 StringList excluded_categories_;
232 StringList synthetic_delays_; 232 StringList synthetic_delays_;
233 }; 233 };
234 234
235 } // namespace trace_event 235 } // namespace trace_event
236 } // namespace base 236 } // namespace base
237 237
238 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ 238 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_
OLDNEW
« no previous file with comments | « base/trace_event/process_memory_totals_dump_provider_unittest.cc ('k') | base/trace_event/trace_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698