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

Unified Diff: src/isolate.cc

Issue 2413243002: Introduce a CompilerDispatcherTracer and track how long jobs take (Closed)
Patch Set: 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/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index e8329883f7e6eaf44f04ebbccc137e5f106404e1..eeb9116395283468fb1d92cab0341e8e981ecace 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -20,6 +20,7 @@
#include "src/codegen.h"
#include "src/compilation-cache.h"
#include "src/compilation-statistics.h"
+#include "src/compiler-dispatcher/compiler-dispatcher-tracer.h"
#include "src/compiler-dispatcher/optimizing-compile-dispatcher.h"
#include "src/crankshaft/hydrogen.h"
#include "src/debug/debug.h"
@@ -2229,6 +2230,9 @@ void Isolate::Deinit() {
cancelable_task_manager()->CancelAndWait();
+ delete compiler_dispatcher_tracer_;
+ compiler_dispatcher_tracer_ = nullptr;
+
delete cpu_profiler_;
cpu_profiler_ = NULL;
@@ -2440,6 +2444,7 @@ bool Isolate::Init(Deserializer* des) {
cpu_profiler_ = new CpuProfiler(this);
heap_profiler_ = new HeapProfiler(heap());
interpreter_ = new interpreter::Interpreter(this);
+ compiler_dispatcher_tracer_ = new CompilerDispatcherTracer(this);
// Enable logging before setting up the heap
logger_->SetUp(this);

Powered by Google App Engine
This is Rietveld 408576698