Commit 8d12b611 authored by cbruni's avatar cbruni Committed by Commit bot

[counters] Only initialize the RuntimeCallStats when --runtime_call_stat is

specified.

BUG=chromium:590668
LOG=N

Review URL: https://codereview.chromium.org/1746833002

Cr-Commit-Position: refs/heads/master@{#34370}
parent 65b23ac7
...@@ -309,6 +309,7 @@ void RuntimeCallStats::Print(std::ostream& os) { ...@@ -309,6 +309,7 @@ void RuntimeCallStats::Print(std::ostream& os) {
} }
void RuntimeCallStats::Reset() { void RuntimeCallStats::Reset() {
if (!FLAG_runtime_call_stats) return;
#define RESET_COUNTER(name, nargs, ressize) this->Runtime_##name.Reset(); #define RESET_COUNTER(name, nargs, ressize) this->Runtime_##name.Reset();
FOR_EACH_INTRINSIC(RESET_COUNTER) FOR_EACH_INTRINSIC(RESET_COUNTER)
#undef RESET_COUNTER #undef RESET_COUNTER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment