Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: src/log.cc

Issue 382043003: Add ExternalTimerEventScope to log non internal timer events scopes (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Minor fix Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/log.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log.cc
diff --git a/src/log.cc b/src/log.cc
index e8af5d0ff4aa02d7667c3e27b2bb4846f61f5517..ad6019e52bf326e040bc4562276e034b6abb72c2 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -1123,6 +1123,12 @@ void Logger::TimerEventScope::LogTimerEvent(StartEnd se) {
}
+void Logger::ExternalTimerEventScope::LogTimerEvent(StartEnd se) {
+ if (FLAG_log_timer_events)
+ isolate_->event_logger()(name_, se);
+}
+
+
const char* Logger::TimerEventScope::v8_recompile_synchronous =
"V8.RecompileSynchronous";
const char* Logger::TimerEventScope::v8_recompile_concurrent =
« no previous file with comments | « src/log.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698