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

Unified Diff: src/d8.cc

Issue 2436273002: [Tracing] Implement TracingCategoryObserver. (Closed)
Patch Set: fix compilation error Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 28ebfc05b9839327fb596ac491514e1b341fe1a9..4900c76548eb7a64b1ef3db7f709dcd7ef0c4750 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -148,6 +148,7 @@ class PredictablePlatform : public Platform {
v8::Platform* g_platform = NULL;
+std::unique_ptr<Platform::TracingFlag> g_tracing_flag;
static Local<Value> Throw(Isolate* isolate, const char* message) {
@@ -2743,11 +2744,12 @@ int Shell::Main(int argc, char* argv[]) {
trace_config =
platform::tracing::TraceConfig::CreateDefaultTraceConfig();
}
- tracing_controller->Initialize(trace_buffer);
- tracing_controller->StartTracing(trace_config);
if (!i::FLAG_verify_predictable) {
platform::SetTracingController(g_platform, tracing_controller);
}
+ tracing_controller->Initialize(trace_buffer);
+ g_tracing_flag = Platform::TracingFlag::Create();
+ tracing_controller->StartTracing(trace_config);
}
if (options.dump_heap_constants) {
« no previous file with comments | « include/v8-platform.h ('k') | src/flag-definitions.h » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698