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

Side by Side Diff: src/libplatform/tracing/trace-config.cc

Issue 2183943002: Revert of [Tracing] V8 Tracing Controller (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « src/libplatform/tracing/trace-buffer.cc ('k') | src/libplatform/tracing/trace-object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include <string.h>
6
7 #include "include/libplatform/v8-tracing.h"
8 #include "src/base/logging.h"
9
10 namespace v8 {
11
12 class Isolate;
13
14 namespace platform {
15 namespace tracing {
16
17 bool TraceConfig::IsCategoryGroupEnabled(const char* category_group) const {
18 for (auto included_category : included_categories_) {
19 if (strcmp(included_category.data(), category_group) == 0) return true;
20 }
21 return false;
22 }
23
24 void TraceConfig::AddIncludedCategory(const char* included_category) {
25 DCHECK(included_category != NULL && strlen(included_category) > 0);
26 included_categories_.push_back(included_category);
27 }
28
29 void TraceConfig::AddExcludedCategory(const char* excluded_category) {
30 DCHECK(excluded_category != NULL && strlen(excluded_category) > 0);
31 excluded_categories_.push_back(excluded_category);
32 }
33
34 } // namespace tracing
35 } // namespace platform
36 } // namespace v8
OLDNEW
« no previous file with comments | « src/libplatform/tracing/trace-buffer.cc ('k') | src/libplatform/tracing/trace-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698