| Index: src/counters.cc
|
| diff --git a/src/counters.cc b/src/counters.cc
|
| index 9fd31f9c94f7de45124c43bce4a3e2d95c97c1be..d8061f5f3341a2917480713596c6c536f1e8d77e 100644
|
| --- a/src/counters.cc
|
| +++ b/src/counters.cc
|
| @@ -344,9 +344,8 @@ void RuntimeCallStats::Print(std::ostream& os) {
|
| }
|
|
|
| void RuntimeCallStats::Reset() {
|
| - if (!FLAG_runtime_call_stats &&
|
| - !TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED())
|
| - return;
|
| + if (V8_LIKELY(FLAG_runtime_stats == 0)) return;
|
| +
|
| #define RESET_COUNTER(name) this->name.Reset();
|
| FOR_EACH_MANUAL_COUNTER(RESET_COUNTER)
|
| #undef RESET_COUNTER
|
|
|