diff --git a/src/counters.h b/src/counters.h index bbc9288172..3049e8673f 100644 --- a/src/counters.h +++ b/src/counters.h @@ -691,6 +691,7 @@ class RuntimeCallTimer { V(IndexedPropertyGetterCallback) \ V(IndexedPropertyQueryCallback) \ V(IndexedPropertySetterCallback) \ + V(InvokeApiInterruptCallbacks) \ V(InvokeFunctionCallback) \ V(JS_Execution) \ V(Map_SetPrototype) \ diff --git a/src/isolate.cc b/src/isolate.cc index d6b41ec2b1..02e0877117 100644 --- a/src/isolate.cc +++ b/src/isolate.cc @@ -979,6 +979,8 @@ void Isolate::RequestInterrupt(InterruptCallback callback, void* data) { void Isolate::InvokeApiInterruptCallbacks() { + RuntimeCallTimerScope runtimeTimer( + this, &RuntimeCallStats::InvokeApiInterruptCallbacks); // Note: callback below should be called outside of execution access lock. while (true) { InterruptEntry entry;