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

Unified Diff: src/counters.cc

Issue 186163002: Add support for allowing an embedder to get the V8 profile timer event logs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Renamings Created 6 years, 10 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
Index: src/counters.cc
diff --git a/src/counters.cc b/src/counters.cc
index e0a6a60a0a4086eb9478afe491d42593026c2cc2..12811f6f361319b5803b90cabec85e27874706ff 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -62,6 +62,7 @@ void HistogramTimer::Start() {
if (Enabled()) {
timer_.Start();
}
+ LOG_EVENT_BEGIN(isolate(), name());
if (FLAG_log_internal_timer_events) {
LOG(isolate(), TimerEvent(Logger::START, name()));
}
@@ -75,6 +76,7 @@ void HistogramTimer::Stop() {
AddSample(static_cast<int>(timer_.Elapsed().InMilliseconds()));
timer_.Stop();
}
+ LOG_EVENT_END(isolate(), name());
if (FLAG_log_internal_timer_events) {
LOG(isolate(), TimerEvent(Logger::END, name()));
}

Powered by Google App Engine
This is Rietveld 408576698