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

Unified Diff: src/counters.cc

Issue 2469403005: Revert of [Tracing] Use TracingCategoryObserver in runtime statistics (Closed)
Patch Set: Created 4 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/counters.h ('k') | src/counters-inl.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 d8061f5f3341a2917480713596c6c536f1e8d77e..9fd31f9c94f7de45124c43bce4a3e2d95c97c1be 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -344,8 +344,9 @@
}
void RuntimeCallStats::Reset() {
- if (V8_LIKELY(FLAG_runtime_stats == 0)) return;
-
+ if (!FLAG_runtime_call_stats &&
+ !TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED())
+ return;
#define RESET_COUNTER(name) this->name.Reset();
FOR_EACH_MANUAL_COUNTER(RESET_COUNTER)
#undef RESET_COUNTER
« no previous file with comments | « src/counters.h ('k') | src/counters-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698