Index: src/api-arguments.cc |
diff --git a/src/api-arguments.cc b/src/api-arguments.cc |
index 0c9ea704018d3ed840b79ea19407d914919f1c65..71a0f60456a5ce9d8b1cfde025d185d96ca8531d 100644 |
--- a/src/api-arguments.cc |
+++ b/src/api-arguments.cc |
@@ -9,6 +9,7 @@ namespace internal { |
Handle<Object> FunctionCallbackArguments::Call(FunctionCallback f) { |
Isolate* isolate = this->isolate(); |
+ RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::FunctionCallback); |
VMState<EXTERNAL> state(isolate); |
ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); |
FunctionCallbackInfo<v8::Value> info(begin(), argv_, argc_); |
@@ -19,6 +20,7 @@ Handle<Object> FunctionCallbackArguments::Call(FunctionCallback f) { |
Handle<JSObject> PropertyCallbackArguments::Call( |
IndexedPropertyEnumeratorCallback f) { |
Isolate* isolate = this->isolate(); |
+ RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::PropertyCallback); |
VMState<EXTERNAL> state(isolate); |
ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); |
PropertyCallbackInfo<v8::Array> info(begin()); |