 Chromium Code Reviews
 Chromium Code Reviews Issue 1746833002:
  [counters] Only initialize the RuntimeCallStats when --runtime_call_stat is  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master
    
  
    Issue 1746833002:
  [counters] Only initialize the RuntimeCallStats when --runtime_call_stat is  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master| Index: src/counters.cc | 
| diff --git a/src/counters.cc b/src/counters.cc | 
| index a10494e1658772b82de18fae9333e49038406a7a..23215925b637e4b50806ba50b5ac066593495463 100644 | 
| --- a/src/counters.cc | 
| +++ b/src/counters.cc | 
| @@ -309,6 +309,7 @@ void RuntimeCallStats::Print(std::ostream& os) { | 
| } | 
| void RuntimeCallStats::Reset() { | 
| + if (!FLAG_runtime_call_stats) return; | 
| #define RESET_COUNTER(name, nargs, ressize) this->Runtime_##name.Reset(); | 
| FOR_EACH_INTRINSIC(RESET_COUNTER) | 
| #undef RESET_COUNTER |