Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 16795519988e26d3b66490d160ff7d68a7508238..a77c1783626e932967eb10a46e43d0c36a9b266e 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -14,6 +14,7 @@ |
#include "src/interpreter/interpreter.h" |
#include "src/macro-assembler.h" |
#include "src/profiler/cpu-profiler.h" |
+#include "src/tracing/trace-event.h" |
#include "src/v8.h" |
@@ -372,6 +373,7 @@ void Deoptimizer::DeoptimizeMarkedCodeForContext(Context* context) { |
void Deoptimizer::DeoptimizeAll(Isolate* isolate) { |
TimerEventScope<TimerEventDeoptimizeCode> timer(isolate); |
+ TRACE_EVENT0("v8", "V8.DeoptimizeCode"); |
if (FLAG_trace_deopt) { |
CodeTracer::Scope scope(isolate->GetCodeTracer()); |
PrintF(scope.file(), "[deoptimize all code in all contexts]\n"); |
@@ -390,6 +392,7 @@ void Deoptimizer::DeoptimizeAll(Isolate* isolate) { |
void Deoptimizer::DeoptimizeMarkedCode(Isolate* isolate) { |
TimerEventScope<TimerEventDeoptimizeCode> timer(isolate); |
+ TRACE_EVENT0("v8", "V8.DeoptimizeCode"); |
if (FLAG_trace_deopt) { |
CodeTracer::Scope scope(isolate->GetCodeTracer()); |
PrintF(scope.file(), "[deoptimize marked code in all contexts]\n"); |
@@ -418,6 +421,7 @@ void Deoptimizer::MarkAllCodeForContext(Context* context) { |
void Deoptimizer::DeoptimizeFunction(JSFunction* function) { |
TimerEventScope<TimerEventDeoptimizeCode> timer(function->GetIsolate()); |
+ TRACE_EVENT0("v8", "V8.DeoptimizeCode"); |
Code* code = function->code(); |
if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
// Mark the code for deoptimization and unlink any functions that also |