Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 0af1c9f03d1b04b8a3b2e6af7a54ebb4bdc570bd..0dcf6bb976960c389e5be71edbea88238c7dbe29 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -16,6 +16,7 @@ |
#include "src/cpu-profiler.h" |
#include "src/deoptimizer.h" |
#include "src/global-handles.h" |
+#include "src/log-inl.h" |
#include "src/log-utils.h" |
#include "src/macro-assembler.h" |
#include "src/perf-jit.h" |
@@ -954,18 +955,10 @@ void Logger::LeaveExternal(Isolate* isolate) { |
} |
-void Logger::DefaultTimerEventsLogger(const char* name, int se) { |
- Isolate* isolate = Isolate::Current(); |
- LOG(isolate, TimerEvent(static_cast<StartEnd>(se), name)); |
-} |
- |
- |
template <class TimerEvent> |
void TimerEventScope<TimerEvent>::LogTimerEvent(Logger::StartEnd se) { |
- if (TimerEvent::expose_to_api() || |
- isolate_->event_logger() == Logger::DefaultTimerEventsLogger) { |
- isolate_->event_logger()(TimerEvent::name(), se); |
- } |
+ Logger::CallEventLogger(isolate_, TimerEvent::name(), se, |
+ TimerEvent::expose_to_api()); |
} |