Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 052e7430d282a1e2af1ef83ea2b74ce97a18672a..8407db272be32544bc7551e23562b24cb064002c 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1090,7 +1090,10 @@ Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) { |
// Measure how long it takes to do the compilation; only take the |
// rest of the function into account to avoid overlap with the |
// parsing statistics. |
- HistogramTimer* rate = parse_info->is_eval() |
+ RuntimeCallStats* stats = isolate->counters()->runtime_call_stats(); |
+ RuntimeCallTimerScope runtimeTimer( |
+ isolate, info->is_eval() ? &stats->CompileEval : &stats->Compile); |
+ HistogramTimer* rate = info->is_eval() |
? info->isolate()->counters()->compile_eval() |
: info->isolate()->counters()->compile(); |
HistogramTimerScope timer(rate); |