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

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

Issue 2137013006: [Tracing] V8 Tracing Controller (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments + remove TraceConfigJSONParser 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
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
9 namespace v8 {
10
11 class Isolate;
12
13 namespace platform {
14 namespace tracing {
15
16 TraceConfig* TraceConfig::CreateDefaultTraceConfig() {
17 TraceConfig* trace_config = new TraceConfig();
18 trace_config->included_categories_.push_back("v8");
19 return trace_config;
20 }
21
22 bool TraceConfig::IsCategoryGroupEnabled(const char* category_group) const {
23 for (auto included_category : included_categories_) {
24 if (strcmp(included_category.data(), category_group) == 0) return true;
25 }
26 return false;
27 }
28
29 } // namespace tracing
30 } // namespace platform
31 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698