Index: src/vm-state-inl.h |
diff --git a/src/vm-state-inl.h b/src/vm-state-inl.h |
index f00cf12c3b4a889862f3a872508b0573d39b23f0..c8bd4e80828d92dbe0b5b3ebef211c6a7df409bc 100644 |
--- a/src/vm-state-inl.h |
+++ b/src/vm-state-inl.h |
@@ -68,6 +68,8 @@ ExternalCallbackScope::ExternalCallbackScope(Isolate* isolate, Address callback) |
timer_.Initialize(&stats->ExternalCallback, stats->current_timer()); |
stats->Enter(&timer_); |
} |
+ TRACE_EVENT_BEGIN0(TRACE_DISABLED_BY_DEFAULT("v8.runtime"), |
+ "V8.ExternalCallback"); |
} |
ExternalCallbackScope::~ExternalCallbackScope() { |
@@ -75,6 +77,8 @@ ExternalCallbackScope::~ExternalCallbackScope() { |
isolate_->counters()->runtime_call_stats()->Leave(&timer_); |
} |
isolate_->set_external_callback_scope(previous_scope_); |
+ TRACE_EVENT_END0(TRACE_DISABLED_BY_DEFAULT("v8.runtime"), |
+ "V8.ExternalCallback"); |
} |
Address ExternalCallbackScope::scope_address() { |