Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index e978f0b6b4ed311c5c55229dbe4ce41f31b12b88..682e9d32b7c48a4d57cae63023dcaece16198a21 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -591,6 +591,7 @@ FunctionLiteral* Parser::ParseProgram(Isolate* isolate, ParseInfo* info) { |
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())); |
@@ -763,6 +764,7 @@ FunctionLiteral* Parser::ParseLazy(Isolate* isolate, ParseInfo* info) { |
DCHECK(parsing_on_main_thread_); |
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())); |