From 8dd2160c14b7adbe98e418540aad6f1daf191715 Mon Sep 17 00:00:00 2001 From: cbruni Date: Thu, 15 Sep 2016 11:56:08 -0700 Subject: [PATCH] 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} --- src/counters.h | 1 + src/isolate.cc | 2 ++ 2 files changed, 3 insertions(+) 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;