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 |