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

Unified Diff: src/counters.cc

Issue 2460973003: [Tracing] Use TracingCategoryObserver 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 ec66d885fda70fcd119cfa46f3e542769e17f93f..d48bb2f12ea6d9c2b6d2e616b6a39341ebc9f850 100644
--- a/src/counters.cc
+++ b/src/counters.cc
@@ -344,9 +344,9 @@ void RuntimeCallStats::Print(std::ostream& os) {
}
void RuntimeCallStats::Reset() {
- if (!FLAG_runtime_call_stats &&
- !TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED())
+ if (FLAG_runtime_stats == 0) {
return;
+ }
#define RESET_COUNTER(name) this->name.Reset();
FOR_EACH_MANUAL_COUNTER(RESET_COUNTER)
#undef RESET_COUNTER

Powered by Google App Engine
This is Rietveld 408576698