| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 const StringList& GetSyntheticDelayValues() const; | 115 const StringList& GetSyntheticDelayValues() const; |
| 116 | 116 |
| 117 TraceRecordMode GetTraceRecordMode() const { return record_mode_; } | 117 TraceRecordMode GetTraceRecordMode() const { return record_mode_; } |
| 118 bool IsSamplingEnabled() const { return enable_sampling_; } | 118 bool IsSamplingEnabled() const { return enable_sampling_; } |
| 119 bool IsSystraceEnabled() const { return enable_systrace_; } | 119 bool IsSystraceEnabled() const { return enable_systrace_; } |
| 120 bool IsArgumentFilterEnabled() const { return enable_argument_filter_; } | 120 bool IsArgumentFilterEnabled() const { return enable_argument_filter_; } |
| 121 | 121 |
| 122 void SetTraceRecordMode(TraceRecordMode mode) { record_mode_ = mode; } | 122 void SetTraceRecordMode(TraceRecordMode mode) { record_mode_ = mode; } |
| 123 void EnableSampling() { enable_sampling_ = true; } | 123 void EnableSampling() { enable_sampling_ = true; } |
| 124 void EnableSystrace() { enable_systrace_ = true; } | 124 void EnableSystrace() { enable_systrace_ = true; } |
| 125 void EnableArgumentFilter() { enable_argument_filter_ = true; } |
| 125 | 126 |
| 126 // Writes the string representation of the TraceConfig. The string is JSON | 127 // Writes the string representation of the TraceConfig. The string is JSON |
| 127 // formatted. | 128 // formatted. |
| 128 std::string ToString() const; | 129 std::string ToString() const; |
| 129 | 130 |
| 130 // Write the string representation of the CategoryFilter part. | 131 // Write the string representation of the CategoryFilter part. |
| 131 std::string ToCategoryFilterString() const; | 132 std::string ToCategoryFilterString() const; |
| 132 | 133 |
| 133 // Returns true if at least one category in the list is enabled by this | 134 // Returns true if at least one category in the list is enabled by this |
| 134 // trace config. | 135 // trace config. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 StringList included_categories_; | 196 StringList included_categories_; |
| 196 StringList disabled_categories_; | 197 StringList disabled_categories_; |
| 197 StringList excluded_categories_; | 198 StringList excluded_categories_; |
| 198 StringList synthetic_delays_; | 199 StringList synthetic_delays_; |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 } // namespace trace_event | 202 } // namespace trace_event |
| 202 } // namespace base | 203 } // namespace base |
| 203 | 204 |
| 204 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ | 205 #endif // BASE_TRACE_EVENT_TRACE_CONFIG_H_ |
| OLD | NEW |