Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index f6dfd2161d89b425c89b97f741acf8a3160b3a05..a916482283fd5653de7d32260f7043363aa67ea9 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -1084,6 +1084,16 @@ void Logger::CodeDeoptEvent(Code* code) { |
} |
+void Logger::CurrentTimeEvent() { |
+ if (!log_->IsEnabled()) return; |
+ ASSERT(FLAG_log_internal_timer_events); |
+ Log::MessageBuilder msg(log_); |
+ int since_epoch = static_cast<int>(timer_.Elapsed().InMicroseconds()); |
+ msg.Append("current-time,%ld\n", since_epoch); |
+ msg.WriteToLogFile(); |
+} |
+ |
+ |
void Logger::TimerEvent(StartEnd se, const char* name) { |
if (!log_->IsEnabled()) return; |
ASSERT(FLAG_log_internal_timer_events); |