Index: src/tracing/trace-event.cc |
diff --git a/src/tracing/trace-event.cc b/src/tracing/trace-event.cc |
index a24ebc0d975b2fb75c61fc30b2d4b8db74315b74..ebee5345997756c3a77fc902eac3089de7b16369 100644 |
--- a/src/tracing/trace-event.cc |
+++ b/src/tracing/trace-event.cc |
@@ -49,7 +49,7 @@ void CallStatsScopedTracer::Initialize(v8::internal::Isolate* isolate, |
p_data_ = &data_; |
RuntimeCallStats* table = isolate->counters()->runtime_call_stats(); |
has_parent_scope_ = table->InUse(); |
- if (!has_parent_scope_) table->Reset(); |
+ if (!has_parent_scope_ && table->current_timer() == NULL) table->Reset(); |
v8::internal::tracing::AddTraceEvent( |
TRACE_EVENT_PHASE_BEGIN, category_group_enabled, name, |
v8::internal::tracing::kGlobalScope, v8::internal::tracing::kNoId, |