| 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 <memory> | 10 #include <memory> |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 void WriteCategoryFilterString(const StringList& values, | 298 void WriteCategoryFilterString(const StringList& values, |
| 299 std::string* out, | 299 std::string* out, |
| 300 bool included) const; | 300 bool included) const; |
| 301 void WriteCategoryFilterString(const StringList& delays, | 301 void WriteCategoryFilterString(const StringList& delays, |
| 302 std::string* out) const; | 302 std::string* out) const; |
| 303 | 303 |
| 304 // Returns true if the category is enabled according to this trace config. | 304 // Returns true if the category is enabled according to this trace config. |
| 305 // This tells whether a category is enabled from the TraceConfig's | 305 // This tells whether a category is enabled from the TraceConfig's |
| 306 // perspective. Please refer to IsCategoryGroupEnabled() to determine if a | 306 // perspective. Please refer to IsCategoryGroupEnabled() to determine if a |
| 307 // category is enabled from the tracing runtime's perspective. | 307 // category is enabled from the tracing runtime's perspective. |
| 308 bool IsCategoryEnabled(const char* category_name) const; | 308 bool IsCategoryEnabled(StringPiece category_name) const; |
| 309 | 309 |
| 310 static bool IsEmptyOrContainsLeadingOrTrailingWhitespace(StringPiece str); | 310 static bool IsEmptyOrContainsLeadingOrTrailingWhitespace(StringPiece str); |
| 311 | 311 |
| 312 bool HasIncludedPatterns() const; | 312 bool HasIncludedPatterns() const; |
| 313 | 313 |
| 314 TraceRecordMode record_mode_; | 314 TraceRecordMode record_mode_; |
| 315 bool enable_systrace_ : 1; | 315 bool enable_systrace_ : 1; |
| 316 bool enable_argument_filter_ : 1; | 316 bool enable_argument_filter_ : 1; |
| 317 | 317 |
| 318 MemoryDumpConfig memory_dump_config_; | 318 MemoryDumpConfig memory_dump_config_; |
| 319 | 319 |
| 320 StringList included_categories_; | 320 StringList included_categories_; |
| 321 StringList disabled_categories_; | 321 StringList disabled_categories_; |
| 322 StringList excluded_categories_; | 322 StringList excluded_categories_; |
| 323 StringList synthetic_delays_; | 323 StringList synthetic_delays_; |
| 324 EventFilters event_filters_; | 324 EventFilters event_filters_; |
| 325 }; | 325 }; |
| 326 | 326 |
| 327 } // namespace trace_event | 327 } // namespace trace_event |
| 328 } // namespace base | 328 } // namespace base |
| 329 | 329 |
| 330 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ | 330 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ |
| OLD | NEW |