Commit 8dd2160c authored by cbruni's avatar cbruni Committed by Commit bot

Add InvokeApiInterruptCallbacks runtime counter

This was one of the paths inside StackGuard that lacked a runtime counter,
making it hard to assess what was going on.

BUG=

Review-Url: https://codereview.chromium.org/2346863002
Cr-Commit-Position: refs/heads/master@{#39455}
parent 739a04bc
...@@ -691,6 +691,7 @@ class RuntimeCallTimer { ...@@ -691,6 +691,7 @@ class RuntimeCallTimer {
V(IndexedPropertyGetterCallback) \ V(IndexedPropertyGetterCallback) \
V(IndexedPropertyQueryCallback) \ V(IndexedPropertyQueryCallback) \
V(IndexedPropertySetterCallback) \ V(IndexedPropertySetterCallback) \
V(InvokeApiInterruptCallbacks) \
V(InvokeFunctionCallback) \ V(InvokeFunctionCallback) \
V(JS_Execution) \ V(JS_Execution) \
V(Map_SetPrototype) \ V(Map_SetPrototype) \
......
...@@ -979,6 +979,8 @@ void Isolate::RequestInterrupt(InterruptCallback callback, void* data) { ...@@ -979,6 +979,8 @@ void Isolate::RequestInterrupt(InterruptCallback callback, void* data) {
void Isolate::InvokeApiInterruptCallbacks() { void Isolate::InvokeApiInterruptCallbacks() {
RuntimeCallTimerScope runtimeTimer(
this, &RuntimeCallStats::InvokeApiInterruptCallbacks);
// Note: callback below should be called outside of execution access lock. // Note: callback below should be called outside of execution access lock.
while (true) { while (true) {
InterruptEntry entry; InterruptEntry entry;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment