Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index bdf20a12c914da22f57f0f50985bd73a908858b3..87d4b8e1acecd7e25fda06b13a326af58f4c5228 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1012,6 +1012,9 @@ 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. |
+ RuntimeCallTimerScope runtimeTimer( |
+ isolate, parse_info->is_eval() ? &RuntimeCallStats::CompileEval |
+ : &RuntimeCallStats::Compile); |
HistogramTimer* rate = parse_info->is_eval() |
? info->isolate()->counters()->compile_eval() |
: info->isolate()->counters()->compile(); |