Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 49b078c51030f4ea7a0dada06e81707676567170..b052b1465eee9bfbc3a3892d883cd1ff481a5441 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(), true); |
i::AggregatingHistogramTimerScope timer(isolate->counters()->compile_lazy()); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
@@ -4379,6 +4380,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(), true); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
@@ -4406,6 +4408,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(), true); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
@@ -4456,6 +4459,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(), true); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
@@ -4480,6 +4484,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(), true); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |