Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index e83d2dbf9b0c41a49b4bb741e955159a77fbcb96..283a9117c60ced7e6c322e6892e58e44d9bb7f6c 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -79,6 +79,9 @@ |
#define LOG_API(isolate, class_name, function_name) \ |
i::RuntimeCallTimerScope _runtime_timer( \ |
isolate, &i::RuntimeCallStats::API_##class_name##_##function_name); \ |
+ TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( \ |
+ isolate, &internal::tracing::TraceEventStatsTable:: \ |
+ API_##class_name##_##function_name); \ |
LOG(isolate, ApiEntryCall("v8::" #class_name "::" #function_name)) |
#define ENTER_V8(isolate) i::VMState<v8::OTHER> __state__((isolate)) |
@@ -9184,6 +9187,9 @@ |
Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
RuntimeCallTimerScope timer(isolate, |
&RuntimeCallStats::AccessorGetterCallback); |
+ TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
+ isolate, |
+ &internal::tracing::TraceEventStatsTable::AccessorGetterCallback); |
Address getter_address = reinterpret_cast<Address>(reinterpret_cast<intptr_t>( |
getter)); |
VMState<EXTERNAL> state(isolate); |
@@ -9197,6 +9203,9 @@ |
Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
RuntimeCallTimerScope timer(isolate, |
&RuntimeCallStats::InvokeFunctionCallback); |
+ TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
+ isolate, |
+ &internal::tracing::TraceEventStatsTable::InvokeFunctionCallback); |
Address callback_address = |
reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
VMState<EXTERNAL> state(isolate); |