diff options
Diffstat (limited to 'deps/v8/src/counters.cc')
-rw-r--r-- | deps/v8/src/counters.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/deps/v8/src/counters.cc b/deps/v8/src/counters.cc index e0a6a60a0..e7fab1c3d 100644 --- a/deps/v8/src/counters.cc +++ b/deps/v8/src/counters.cc @@ -62,9 +62,7 @@ void HistogramTimer::Start() { if (Enabled()) { timer_.Start(); } - if (FLAG_log_internal_timer_events) { - LOG(isolate(), TimerEvent(Logger::START, name())); - } + isolate()->event_logger()(name(), Logger::START); } @@ -75,9 +73,7 @@ void HistogramTimer::Stop() { AddSample(static_cast<int>(timer_.Elapsed().InMilliseconds())); timer_.Stop(); } - if (FLAG_log_internal_timer_events) { - LOG(isolate(), TimerEvent(Logger::END, name())); - } + isolate()->event_logger()(name(), Logger::END); } } } // namespace v8::internal |