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

Unified Diff: src/counters.cc

Issue 2457523002: [Tracing] Fix inaccurate timer calculation in runtime statistics. (Closed)
Patch Set: Created 4 years, 2 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 8fcfd541411d433911bf2003d4ce46d8535ff873..f57d88dba71fc44fd0729a41904fb297ce22aa36 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -368,6 +368,9 @@ void RuntimeCallStats::Reset() {
}
void RuntimeCallStats::Dump(v8::tracing::TracedValue* value) {
+ if (current_timer_ != NULL) {
+ current_timer_->Elapsed();
+ }
Camillo Bruni 2016/10/27 09:00:58 Can you add the same call to RuntimeCallStats::Pri
lpy 2016/10/27 16:59:21 Done.
#define DUMP_COUNTER(name) \
if (this->name.count > 0) this->name.Dump(value);
FOR_EACH_MANUAL_COUNTER(DUMP_COUNTER)
« src/counters.h ('K') | « src/counters.h ('k') | src/tracing/trace-event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698