| Index: src/counters-inl.h
|
| diff --git a/src/counters-inl.h b/src/counters-inl.h
|
| index 44424d3ba458ec9abc0c61ccb8e598c8febecfe7..e0e824b063eb268b34493410968f4d5d9f79f66f 100644
|
| --- a/src/counters-inl.h
|
| +++ b/src/counters-inl.h
|
| @@ -12,12 +12,16 @@ namespace internal {
|
|
|
| RuntimeCallTimerScope::RuntimeCallTimerScope(
|
| HeapObject* heap_object, RuntimeCallStats::CounterId counter_id) {
|
| - if (V8_UNLIKELY(FLAG_runtime_call_stats)) {
|
| + if (V8_UNLIKELY(TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED())) {
|
| + isolate_ = heap_object->GetIsolate();
|
| + is_tracing_ = true;
|
| + RuntimeCallStats::Enter(isolate_->counters()->tracing_runtime_call_stats(),
|
| + &timer_, counter_id);
|
| + } else if (V8_UNLIKELY(FLAG_runtime_call_stats)) {
|
| isolate_ = heap_object->GetIsolate();
|
| RuntimeCallStats::Enter(isolate_->counters()->runtime_call_stats(), &timer_,
|
| counter_id);
|
| }
|
| - // TODO(lpy): Add a tracing equivalent for the runtime call stats.
|
| }
|
|
|
| } // namespace internal
|
|
|