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

Side by Side Diff: include/libplatform/v8-tracing.h

Issue 2462143002: [Tracing] Remove unused excluded categories list. (Closed)
Patch Set: Created 4 years, 1 month 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 | src/d8.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project 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 V8_LIBPLATFORM_V8_TRACING_H_ 5 #ifndef V8_LIBPLATFORM_V8_TRACING_H_
6 #define V8_LIBPLATFORM_V8_TRACING_H_ 6 #define V8_LIBPLATFORM_V8_TRACING_H_
7 7
8 #include <fstream> 8 #include <fstream>
9 #include <memory> 9 #include <memory>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 TraceConfig() : enable_systrace_(false), enable_argument_filter_(false) {} 188 TraceConfig() : enable_systrace_(false), enable_argument_filter_(false) {}
189 TraceRecordMode GetTraceRecordMode() const { return record_mode_; } 189 TraceRecordMode GetTraceRecordMode() const { return record_mode_; }
190 bool IsSystraceEnabled() const { return enable_systrace_; } 190 bool IsSystraceEnabled() const { return enable_systrace_; }
191 bool IsArgumentFilterEnabled() const { return enable_argument_filter_; } 191 bool IsArgumentFilterEnabled() const { return enable_argument_filter_; }
192 192
193 void SetTraceRecordMode(TraceRecordMode mode) { record_mode_ = mode; } 193 void SetTraceRecordMode(TraceRecordMode mode) { record_mode_ = mode; }
194 void EnableSystrace() { enable_systrace_ = true; } 194 void EnableSystrace() { enable_systrace_ = true; }
195 void EnableArgumentFilter() { enable_argument_filter_ = true; } 195 void EnableArgumentFilter() { enable_argument_filter_ = true; }
196 196
197 void AddIncludedCategory(const char* included_category); 197 void AddIncludedCategory(const char* included_category);
198 void AddExcludedCategory(const char* excluded_category);
199 198
200 bool IsCategoryGroupEnabled(const char* category_group) const; 199 bool IsCategoryGroupEnabled(const char* category_group) const;
201 200
202 private: 201 private:
203 TraceRecordMode record_mode_; 202 TraceRecordMode record_mode_;
204 bool enable_systrace_ : 1; 203 bool enable_systrace_ : 1;
205 bool enable_argument_filter_ : 1; 204 bool enable_argument_filter_ : 1;
206 StringList included_categories_; 205 StringList included_categories_;
207 StringList excluded_categories_;
208 206
209 // Disallow copy and assign 207 // Disallow copy and assign
210 TraceConfig(const TraceConfig&) = delete; 208 TraceConfig(const TraceConfig&) = delete;
211 void operator=(const TraceConfig&) = delete; 209 void operator=(const TraceConfig&) = delete;
212 }; 210 };
213 211
214 class V8_PLATFORM_EXPORT TracingController { 212 class V8_PLATFORM_EXPORT TracingController {
215 public: 213 public:
216 enum Mode { DISABLED = 0, RECORDING_MODE }; 214 enum Mode { DISABLED = 0, RECORDING_MODE };
217 215
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // Disallow copy and assign 261 // Disallow copy and assign
264 TracingController(const TracingController&) = delete; 262 TracingController(const TracingController&) = delete;
265 void operator=(const TracingController&) = delete; 263 void operator=(const TracingController&) = delete;
266 }; 264 };
267 265
268 } // namespace tracing 266 } // namespace tracing
269 } // namespace platform 267 } // namespace platform
270 } // namespace v8 268 } // namespace v8
271 269
272 #endif // V8_LIBPLATFORM_V8_TRACING_H_ 270 #endif // V8_LIBPLATFORM_V8_TRACING_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698