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

Unified Diff: src/counters.cc

Issue 11411144: Also time other API functions calling into javascript. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/compiler.cc ('k') | src/log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/counters.cc
diff --git a/src/counters.cc b/src/counters.cc
index db8a1237e958a4ca68fc08f6862d6c8bf3c9cb54..e152c752f7adbd0acf9cc64c9d00d2709fef0918 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -92,9 +92,8 @@ void HistogramTimer::Stop() {
histogram_.AddSample(milliseconds);
}
if (FLAG_log_timer_events) {
- stop_time_ = OS::Ticks();
- Isolate::Current()->logger()->TimerEvent(
- histogram_.name_, start_time_, stop_time_);
+ LOG(Isolate::Current(),
+ TimerEvent(histogram_.name_, start_time_, OS::Ticks()));
}
}
« no previous file with comments | « src/compiler.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698