Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 82ce886fc9248cd31f49bca7e691b071bad4ff6c..128d3f8e948abd685a279e1b28d09660a3a6f5b0 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -637,6 +637,16 @@ void Logger::SharedLibraryEvent(const wchar_t* library_path, |
} |
+void Logger::CodeDeoptEvent(Code* code) { |
+ if (!log_->IsEnabled()) return; |
+ ASSERT(FLAG_log_internal_timer_events); |
+ LogMessageBuilder msg(this); |
+ int since_epoch = static_cast<int>(OS::Ticks() - epoch_); |
+ msg.Append("code-deopt,%ld,%d\n", since_epoch, code->CodeSize()); |
+ msg.WriteToLogFile(); |
+} |
+ |
+ |
void Logger::TimerEvent(StartEnd se, const char* name) { |
if (!log_->IsEnabled()) return; |
ASSERT(FLAG_log_internal_timer_events); |