Commit 3b537f38 authored by rmcilroy's avatar rmcilroy Committed by Commit bot

[Interpreter] Add ignition compile trace events.

BUG=v8:4280
LOG=N

Review URL: https://codereview.chromium.org/1811323002

Cr-Commit-Position: refs/heads/master@{#34899}
parent 4526365f
...@@ -66,6 +66,9 @@ int Interpreter::InterruptBudget() { ...@@ -66,6 +66,9 @@ int Interpreter::InterruptBudget() {
} }
bool Interpreter::MakeBytecode(CompilationInfo* info) { bool Interpreter::MakeBytecode(CompilationInfo* info) {
TimerEventScope<TimerEventCompileIgnition> timer(info->isolate());
TRACE_EVENT0("v8", "V8.CompileIgnition");
if (FLAG_print_bytecode || FLAG_print_source || FLAG_print_ast) { if (FLAG_print_bytecode || FLAG_print_source || FLAG_print_ast) {
OFStream os(stdout); OFStream os(stdout);
base::SmartArrayPointer<char> name = info->GetDebugName(); base::SmartArrayPointer<char> name = info->GetDebugName();
......
...@@ -409,6 +409,7 @@ class Logger { ...@@ -409,6 +409,7 @@ class Logger {
#define TIMER_EVENTS_LIST(V) \ #define TIMER_EVENTS_LIST(V) \
V(RecompileSynchronous, true) \ V(RecompileSynchronous, true) \
V(RecompileConcurrent, true) \ V(RecompileConcurrent, true) \
V(CompileIgnition, true) \
V(CompileFullCode, true) \ V(CompileFullCode, true) \
V(OptimizeCode, true) \ V(OptimizeCode, true) \
V(CompileCode, true) \ V(CompileCode, true) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment