Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 65b7f7876721f32e53394dddbc10f9616feb02b6..304807bc626d36356a86d3cc7e13ac4ba721822a 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -666,8 +666,8 @@ |
TimerEventScope<TimerEventRecompileSynchronous> timer(isolate); |
RuntimeCallTimerScope runtimeTimer(isolate, |
&RuntimeCallStats::RecompileSynchronous); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, &tracing::TraceEventStatsTable::RecompileSynchronous); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), |
+ "V8.RecompileSynchronous"); |
if (job->CreateGraph() != CompilationJob::SUCCEEDED || |
job->OptimizeGraph() != CompilationJob::SUCCEEDED || |
@@ -729,8 +729,8 @@ |
TimerEventScope<TimerEventRecompileSynchronous> timer(info->isolate()); |
RuntimeCallTimerScope runtimeTimer(info->isolate(), |
&RuntimeCallStats::RecompileSynchronous); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, &tracing::TraceEventStatsTable::RecompileSynchronous); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), |
+ "V8.RecompileSynchronous"); |
if (job->CreateGraph() != CompilationJob::SUCCEEDED) return false; |
isolate->optimizing_compile_dispatcher()->QueueForOptimization(job); |
@@ -808,8 +808,7 @@ |
CanonicalHandleScope canonical(isolate); |
TimerEventScope<TimerEventOptimizeCode> optimize_code_timer(isolate); |
RuntimeCallTimerScope runtimeTimer(isolate, &RuntimeCallStats::OptimizeCode); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, &tracing::TraceEventStatsTable::OptimizeCode); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.OptimizeCode"); |
// TurboFan can optimize directly from existing bytecode. |
if (FLAG_turbo_from_bytecode && use_turbofan && ShouldUseIgnition(info)) { |
@@ -1002,8 +1001,7 @@ |
TimerEventScope<TimerEventCompileCode> compile_timer(isolate); |
RuntimeCallTimerScope runtimeTimer(isolate, |
&RuntimeCallStats::CompileCodeLazy); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, &tracing::TraceEventStatsTable::CompileCodeLazy); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileCode"); |
AggregatedHistogramTimerScope timer(isolate->counters()->compile_lazy()); |
if (FLAG_turbo_cache_shared_code) { |
@@ -1058,8 +1056,7 @@ |
Isolate* isolate = info->isolate(); |
TimerEventScope<TimerEventCompileCode> timer(isolate); |
RuntimeCallTimerScope runtimeTimer(isolate, &RuntimeCallStats::CompileCode); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, &tracing::TraceEventStatsTable::CompileCode); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileCode"); |
PostponeInterruptsScope postpone(isolate); |
DCHECK(!isolate->native_context().is_null()); |
ParseInfo* parse_info = info->parse_info(); |
@@ -1126,10 +1123,8 @@ |
? info->isolate()->counters()->compile_eval() |
: info->isolate()->counters()->compile(); |
HistogramTimerScope timer(rate); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, |
- (parse_info->is_eval() ? &tracing::TraceEventStatsTable::CompileEval |
- : &tracing::TraceEventStatsTable::Compile)); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), |
+ parse_info->is_eval() ? "V8.CompileEval" : "V8.Compile"); |
// Allocate a shared function info object. |
DCHECK_EQ(kNoSourcePosition, lit->function_token_position()); |
@@ -1599,8 +1594,8 @@ |
HistogramTimerScope timer(isolate->counters()->compile_deserialize()); |
RuntimeCallTimerScope runtimeTimer(isolate, |
&RuntimeCallStats::CompileDeserialize); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, &tracing::TraceEventStatsTable::CompileDeserialize); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), |
+ "V8.CompileDeserialize"); |
Handle<SharedFunctionInfo> result; |
if (CodeSerializer::Deserialize(isolate, *cached_data, source) |
.ToHandle(&result)) { |
@@ -1673,8 +1668,8 @@ |
isolate->counters()->compile_serialize()); |
RuntimeCallTimerScope runtimeTimer(isolate, |
&RuntimeCallStats::CompileSerialize); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, &tracing::TraceEventStatsTable::CompileSerialize); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), |
+ "V8.CompileSerialize"); |
*cached_data = CodeSerializer::Serialize(isolate, result, source); |
if (FLAG_profile_deserialization) { |
PrintF("[Compiling and serializing took %0.3f ms]\n", |
@@ -1791,8 +1786,7 @@ |
// Generate code |
TimerEventScope<TimerEventCompileCode> timer(isolate); |
RuntimeCallTimerScope runtimeTimer(isolate, &RuntimeCallStats::CompileCode); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, &tracing::TraceEventStatsTable::CompileCode); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileCode"); |
if (lazy) { |
info.SetCode(isolate->builtins()->CompileLazy()); |
} else if (Renumber(info.parse_info()) && GenerateUnoptimizedCode(&info)) { |
@@ -1867,8 +1861,8 @@ |
TimerEventScope<TimerEventRecompileSynchronous> timer(info->isolate()); |
RuntimeCallTimerScope runtimeTimer(isolate, |
&RuntimeCallStats::RecompileSynchronous); |
- TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( |
- isolate, &tracing::TraceEventStatsTable::RecompileSynchronous); |
+ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), |
+ "V8.RecompileSynchronous"); |
Handle<SharedFunctionInfo> shared = info->shared_info(); |
shared->code()->set_profiler_ticks(0); |