| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index 91d3fb8f0f31dc0fd9d828ddb37ac6d89526e8b3..5bb739b2e1d018089d4e2e15d180c49507f9c0e0 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -816,6 +816,8 @@ FunctionLiteral* Parser::ParseProgram(Isolate* isolate, ParseInfo* info) {
|
| DCHECK(parsing_on_main_thread_);
|
|
|
| HistogramTimerScope timer_scope(isolate->counters()->parse(), true);
|
| + RuntimeCallStats* stats = isolate->counters()->runtime_call_stats();
|
| + RuntimeCallTimerScope runtimeTimer(isolate, &stats->Parse);
|
| TRACE_EVENT0("v8", "V8.Parse");
|
| Handle<String> source(String::cast(info->script()->source()));
|
| isolate->counters()->total_parse_size()->Increment(source->length());
|
| @@ -980,6 +982,8 @@ FunctionLiteral* Parser::ParseLazy(Isolate* isolate, ParseInfo* info) {
|
| // It's OK to use the Isolate & counters here, since this function is only
|
| // called in the main thread.
|
| DCHECK(parsing_on_main_thread_);
|
| + RuntimeCallStats* stats = isolate->counters()->runtime_call_stats();
|
| + RuntimeCallTimerScope runtimeTimer(isolate, &stats->ParseLazy);
|
| HistogramTimerScope timer_scope(isolate->counters()->parse_lazy());
|
| TRACE_EVENT0("v8", "V8.ParseLazy");
|
| Handle<String> source(String::cast(info->script()->source()));
|
|
|