| Index: src/compiler-dispatcher/compiler-dispatcher-tracer.cc
|
| diff --git a/src/compiler-dispatcher/compiler-dispatcher-tracer.cc b/src/compiler-dispatcher/compiler-dispatcher-tracer.cc
|
| index f8af05feb97085a95f3a6267815dff606d3fc28d..81029c71b4581c528e158dd05a87f1fbce85ef73 100644
|
| --- a/src/compiler-dispatcher/compiler-dispatcher-tracer.cc
|
| +++ b/src/compiler-dispatcher/compiler-dispatcher-tracer.cc
|
| @@ -23,7 +23,8 @@
|
| : tracer_(tracer), scope_id_(scope_id), num_(num) {
|
| start_time_ = MonotonicallyIncreasingTimeInMs();
|
| // TODO(cbruni): remove once we fully moved to a trace-based system.
|
| - if (V8_UNLIKELY(FLAG_runtime_stats)) {
|
| + if (TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED() ||
|
| + FLAG_runtime_call_stats) {
|
| RuntimeCallStats::Enter(tracer_->runtime_call_stats_, &timer_,
|
| &RuntimeCallStats::CompilerDispatcher);
|
| }
|
| @@ -52,7 +53,8 @@
|
| break;
|
| }
|
| // TODO(cbruni): remove once we fully moved to a trace-based system.
|
| - if (V8_UNLIKELY(FLAG_runtime_stats)) {
|
| + if (TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED() ||
|
| + FLAG_runtime_call_stats) {
|
| RuntimeCallStats::Leave(tracer_->runtime_call_stats_, &timer_);
|
| }
|
| }
|
|
|