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

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

Issue 1148633007: Hooked the trace event argument whitelist up to the background_trace_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Buildfix Created 5 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/tracing/background_tracing_field_trial.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tracing/background_tracing_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698