Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 6a3bc3574c5aea2e5656d1990f70e57f7deb2b2e..ea9282bf70995f172253943ca86ec2fcc2b3d22b 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -590,6 +590,8 @@ |
HistogramTimerScope timer_scope(isolate->counters()->parse(), true); |
RuntimeCallTimerScope runtime_timer(isolate, &RuntimeCallStats::Parse); |
TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.Parse"); |
+ TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
+ isolate, &tracing::TraceEventStatsTable::Parse); |
Handle<String> source(String::cast(info->script()->source())); |
isolate->counters()->total_parse_size()->Increment(source->length()); |
base::ElapsedTimer timer; |
@@ -755,6 +757,8 @@ |
RuntimeCallTimerScope runtime_timer(isolate, &RuntimeCallStats::ParseLazy); |
HistogramTimerScope timer_scope(isolate->counters()->parse_lazy()); |
TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.ParseLazy"); |
+ TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
+ isolate, &tracing::TraceEventStatsTable::ParseLazy); |
Handle<String> source(String::cast(info->script()->source())); |
isolate->counters()->total_parse_size()->Increment(source->length()); |
base::ElapsedTimer timer; |