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> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/base_export.h" | 13 #include "base/base_export.h" |
12 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
13 #include "base/trace_event/memory_dump_request_args.h" | 15 #include "base/trace_event/memory_dump_request_args.h" |
14 #include "base/values.h" | 16 #include "base/values.h" |
15 | 17 |
16 namespace base { | 18 namespace base { |
17 namespace trace_event { | 19 namespace trace_event { |
(...skipping 16 matching lines...) Expand all Loading... |
34 ECHO_TO_CONSOLE, | 36 ECHO_TO_CONSOLE, |
35 }; | 37 }; |
36 | 38 |
37 class BASE_EXPORT TraceConfig { | 39 class BASE_EXPORT TraceConfig { |
38 public: | 40 public: |
39 typedef std::vector<std::string> StringList; | 41 typedef std::vector<std::string> StringList; |
40 | 42 |
41 // Specifies the memory dump config for tracing. Used only when | 43 // Specifies the memory dump config for tracing. Used only when |
42 // "memory-infra" category is enabled. | 44 // "memory-infra" category is enabled. |
43 struct MemoryDumpTriggerConfig { | 45 struct MemoryDumpTriggerConfig { |
44 uint32 periodic_interval_ms; | 46 uint32_t periodic_interval_ms; |
45 MemoryDumpLevelOfDetail level_of_detail; | 47 MemoryDumpLevelOfDetail level_of_detail; |
46 }; | 48 }; |
47 | 49 |
48 typedef std::vector<MemoryDumpTriggerConfig> MemoryDumpConfig; | 50 typedef std::vector<MemoryDumpTriggerConfig> MemoryDumpConfig; |
49 | 51 |
50 TraceConfig(); | 52 TraceConfig(); |
51 | 53 |
52 // Create TraceConfig object from category filter and trace options strings. | 54 // Create TraceConfig object from category filter and trace options strings. |
53 // | 55 // |
54 // |category_filter_string| is a comma-delimited list of category wildcards. | 56 // |category_filter_string| is a comma-delimited list of category wildcards. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 StringList included_categories_; | 236 StringList included_categories_; |
235 StringList disabled_categories_; | 237 StringList disabled_categories_; |
236 StringList excluded_categories_; | 238 StringList excluded_categories_; |
237 StringList synthetic_delays_; | 239 StringList synthetic_delays_; |
238 }; | 240 }; |
239 | 241 |
240 } // namespace trace_event | 242 } // namespace trace_event |
241 } // namespace base | 243 } // namespace base |
242 | 244 |
243 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ | 245 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ |
OLD | NEW |