| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index 29d47b478f509577488dacaccd5979e2635d2cef..75c18a854b3844bcc353cf205ab4bc2b8c849a2f 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -820,6 +820,7 @@ FunctionLiteral* Parser::ParseProgram(Isolate* isolate, ParseInfo* info) {
|
| DCHECK(parsing_on_main_thread_);
|
|
|
| HistogramTimerScope timer_scope(isolate->counters()->parse(), true);
|
| + RuntimeCallTimerScope runtime_timer(isolate, &RuntimeCallStats::Parse);
|
| TRACE_EVENT0("v8", "V8.Parse");
|
| Handle<String> source(String::cast(info->script()->source()));
|
| isolate->counters()->total_parse_size()->Increment(source->length());
|
| @@ -984,6 +985,7 @@ 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_);
|
| + RuntimeCallTimerScope runtime_timer(isolate, &RuntimeCallStats::ParseLazy);
|
| HistogramTimerScope timer_scope(isolate->counters()->parse_lazy());
|
| TRACE_EVENT0("v8", "V8.ParseLazy");
|
| Handle<String> source(String::cast(info->script()->source()));
|
|
|