Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 2e957316f8aeee46fc94a9ff1e2eed7fd1108d51..a6843345b71f6a4640c9d4f6434d24a571a208e1 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -75,9 +75,6 @@ |
#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)) |
@@ -1840,7 +1837,7 @@ |
i::HistogramTimerScope execute_timer(isolate->counters()->execute(), true); |
i::AggregatingHistogramTimerScope timer(isolate->counters()->compile_lazy()); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
- TRACE_EVENT_CALL_STATS_SCOPED(isolate, "v8", "V8.Execute"); |
+ TRACE_EVENT0("v8", "V8.Execute"); |
auto fun = i::Handle<i::JSFunction>::cast(Utils::OpenHandle(this)); |
i::Handle<i::Object> receiver = isolate->global_proxy(); |
Local<Value> result; |
@@ -1875,7 +1872,7 @@ |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); |
PREPARE_FOR_EXECUTION_WITH_ISOLATE(isolate, ScriptCompiler, CompileUnbound, |
UnboundScript); |
- TRACE_EVENT_CALL_STATS_SCOPED(isolate, "v8", "V8.ScriptCompiler"); |
+ TRACE_EVENT0("v8", "V8.ScriptCompiler"); |
// Don't try to produce any kind of cache when the debugger is loaded. |
if (isolate->debug()->is_loaded() && |
@@ -4419,7 +4416,7 @@ |
Local<Value> argv[]) { |
PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, Object, CallAsFunction, Value); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
- TRACE_EVENT_CALL_STATS_SCOPED(isolate, "v8", "V8.Execute"); |
+ TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
auto recv_obj = Utils::OpenHandle(*recv); |
STATIC_ASSERT(sizeof(v8::Local<v8::Value>) == sizeof(i::Object**)); |
@@ -4446,7 +4443,7 @@ |
PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, Object, CallAsConstructor, |
Value); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
- TRACE_EVENT_CALL_STATS_SCOPED(isolate, "v8", "V8.Execute"); |
+ TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
STATIC_ASSERT(sizeof(v8::Local<v8::Value>) == sizeof(i::Object**)); |
i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv); |
@@ -4496,7 +4493,7 @@ |
v8::Local<v8::Value> argv[]) const { |
PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, Function, NewInstance, Object); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
- TRACE_EVENT_CALL_STATS_SCOPED(isolate, "v8", "V8.Execute"); |
+ TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
STATIC_ASSERT(sizeof(v8::Local<v8::Value>) == sizeof(i::Object**)); |
i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv); |
@@ -4520,7 +4517,7 @@ |
v8::Local<v8::Value> argv[]) { |
PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, Function, Call, Value); |
i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); |
- TRACE_EVENT_CALL_STATS_SCOPED(isolate, "v8", "V8.Execute"); |
+ TRACE_EVENT0("v8", "V8.Execute"); |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> recv_obj = Utils::OpenHandle(*recv); |
STATIC_ASSERT(sizeof(v8::Local<v8::Value>) == sizeof(i::Object**)); |
@@ -5701,7 +5698,6 @@ |
size_t context_snapshot_index) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(external_isolate); |
LOG_API(isolate, Context, New); |
- TRACE_EVENT_CALL_STATS_SCOPED(isolate, "v8", "V8.NewContext"); |
i::HandleScope scope(isolate); |
ExtensionConfiguration no_extensions; |
if (extensions == NULL) extensions = &no_extensions; |
@@ -8965,9 +8961,6 @@ |
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); |
@@ -8981,9 +8974,6 @@ |
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); |