| Index: src/libplatform/tracing/trace-config.cc
|
| diff --git a/src/libplatform/tracing/trace-config.cc b/src/libplatform/tracing/trace-config.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a35422caf7dc6de299e6761135780f52d5000362
|
| --- /dev/null
|
| +++ b/src/libplatform/tracing/trace-config.cc
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2016 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include <string.h>
|
| +
|
| +#include "include/libplatform/v8-tracing.h"
|
| +
|
| +namespace v8 {
|
| +
|
| +class Isolate;
|
| +
|
| +namespace platform {
|
| +namespace tracing {
|
| +
|
| +TraceConfig* TraceConfig::CreateDefaultTraceConfig() {
|
| + TraceConfig* trace_config = new TraceConfig();
|
| + trace_config->included_categories_.push_back("v8");
|
| + return trace_config;
|
| +}
|
| +
|
| +bool TraceConfig::IsCategoryGroupEnabled(const char* category_group) const {
|
| + for (auto included_category : included_categories_) {
|
| + if (strcmp(included_category.data(), category_group) == 0) return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| +} // namespace tracing
|
| +} // namespace platform
|
| +} // namespace v8
|
|
|