Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 4f1d7348ca3fbbbccebb99aec9550e03c71a99b8..6332e1f6dc678794be12a882ed343e0e9d2285a0 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1783,6 +1783,7 @@ Local<Value> UnboundScript::GetSourceMappingURL() { |
MaybeLocal<Value> Script::Run(Local<Context> context) { |
PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, "v8::Script::Run()", Value) |
+ i::HistogramTimerScope execute_timer(isolate->counters()->execute()); |
i::AggregatingHistogramTimerScope timer(isolate->counters()->compile_lazy()); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
@@ -4373,6 +4374,7 @@ MaybeLocal<Value> Object::CallAsFunction(Local<Context> context, |
Local<Value> argv[]) { |
PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, "v8::Object::CallAsFunction()", |
Value); |
+ i::HistogramTimerScope execute_timer(isolate->counters()->execute()); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
@@ -4400,6 +4402,7 @@ MaybeLocal<Value> Object::CallAsConstructor(Local<Context> context, int argc, |
Local<Value> argv[]) { |
PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, |
"v8::Object::CallAsConstructor()", Value); |
+ i::HistogramTimerScope execute_timer(isolate->counters()->execute()); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
@@ -4450,6 +4453,7 @@ MaybeLocal<Object> Function::NewInstance(Local<Context> context, int argc, |
v8::Local<v8::Value> argv[]) const { |
PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, "v8::Function::NewInstance()", |
Object); |
+ i::HistogramTimerScope execute_timer(isolate->counters()->execute()); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
@@ -4474,6 +4478,7 @@ MaybeLocal<v8::Value> Function::Call(Local<Context> context, |
v8::Local<v8::Value> recv, int argc, |
v8::Local<v8::Value> argv[]) { |
PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, "v8::Function::Call()", Value); |
+ i::HistogramTimerScope execute_timer(isolate->counters()->execute()); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |