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 <string> | 11 #include <string> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/base_export.h" | 14 #include "base/base_export.h" |
14 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
15 #include "base/trace_event/memory_dump_request_args.h" | 16 #include "base/trace_event/memory_dump_request_args.h" |
16 #include "base/values.h" | 17 #include "base/values.h" |
17 | 18 |
18 namespace base { | 19 namespace base { |
19 namespace trace_event { | 20 namespace trace_event { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 63 |
63 // Reset the options to default. | 64 // Reset the options to default. |
64 void Clear(); | 65 void Clear(); |
65 | 66 |
66 uint32_t breakdown_threshold_bytes; | 67 uint32_t breakdown_threshold_bytes; |
67 }; | 68 }; |
68 | 69 |
69 // Reset the values in the config. | 70 // Reset the values in the config. |
70 void Clear(); | 71 void Clear(); |
71 | 72 |
| 73 // Set of memory dump modes allowed for the tracing session. The explicitly |
| 74 // triggered dumps will be successful only if the dump mode is allowed in |
| 75 // the config. |
| 76 std::set<MemoryDumpLevelOfDetail> allowed_dump_modes; |
| 77 |
72 std::vector<Trigger> triggers; | 78 std::vector<Trigger> triggers; |
73 HeapProfiler heap_profiler_options; | 79 HeapProfiler heap_profiler_options; |
74 }; | 80 }; |
75 | 81 |
76 TraceConfig(); | 82 TraceConfig(); |
77 | 83 |
78 // Create TraceConfig object from category filter and trace options strings. | 84 // Create TraceConfig object from category filter and trace options strings. |
79 // | 85 // |
80 // |category_filter_string| is a comma-delimited list of category wildcards. | 86 // |category_filter_string| is a comma-delimited list of category wildcards. |
81 // A category can have an optional '-' prefix to make it an excluded category. | 87 // A category can have an optional '-' prefix to make it an excluded category. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 StringList included_categories_; | 282 StringList included_categories_; |
277 StringList disabled_categories_; | 283 StringList disabled_categories_; |
278 StringList excluded_categories_; | 284 StringList excluded_categories_; |
279 StringList synthetic_delays_; | 285 StringList synthetic_delays_; |
280 }; | 286 }; |
281 | 287 |
282 } // namespace trace_event | 288 } // namespace trace_event |
283 } // namespace base | 289 } // namespace base |
284 | 290 |
285 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ | 291 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ |
OLD | NEW |