OLD | NEW |
(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 |
OLD | NEW |