Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index a40bd92f392a45805ac98ec78957afe7d085c257..76af40067a21779d2b090806d5c3c68c448d8c24 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -727,6 +727,19 @@ void Logger::ExternalSwitch(StateTag old_tag, StateTag new_tag) { |
} |
+void Logger::EnterExternal() { |
+ LOGGER->enter_external_ = OS::Ticks(); |
+} |
+ |
+ |
+void Logger::LeaveExternal() { |
+ if (enter_external_ == 0) return; |
+ Logger* logger = LOGGER; |
+ logger->TimerEvent("V8.External", enter_external_, OS::Ticks()); |
+ logger->enter_external_ = 0; |
+} |
+ |
+ |
int64_t Logger::enter_external_ = 0; |