| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index 65271d9a5c3fcebd28baf1a2425d5295573c0fa5..a9a0d53430761a6564aa132ff687edf4c3bcc59e 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -867,7 +867,8 @@ 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()));
|
| isolate->counters()->total_parse_size()->Increment(source->length());
|
| base::ElapsedTimer timer;
|
| @@ -1037,7 +1038,8 @@ 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()));
|
| isolate->counters()->total_parse_size()->Increment(source->length());
|
| base::ElapsedTimer timer;
|
|
|