public final class TraceCompilationListener extends AbstractDebugCompilationListener
Modifier and Type | Class and Description |
---|---|
private static class |
TraceCompilationListener.LocalCompilation |
Modifier and Type | Field and Description |
---|---|
private ThreadLocal<TraceCompilationListener.LocalCompilation> |
currentCompilation |
Modifier | Constructor and Description |
---|---|
private |
TraceCompilationListener() |
Modifier and Type | Method and Description |
---|---|
private static void |
addSourceInfo(Map<String,Object> properties,
Object source) |
private static String |
formatSourceSection(com.oracle.truffle.api.source.SourceSection sourceSection) |
static void |
install(GraalTruffleRuntime runtime) |
void |
notifyCompilationDequeued(OptimizedCallTarget target,
Object source,
CharSequence reason)
Invoked if a call target was unqueued from the compilation queue.
|
void |
notifyCompilationFailed(OptimizedCallTarget target,
StructuredGraph graph,
Throwable t) |
void |
notifyCompilationInvalidated(OptimizedCallTarget target,
Object source,
CharSequence reason)
Invoked if a compiled call target was invalidated.
|
void |
notifyCompilationQueued(OptimizedCallTarget target)
Invoked if a call target was queued to the compilation queue.
|
void |
notifyCompilationStarted(OptimizedCallTarget target) |
void |
notifyCompilationSuccess(OptimizedCallTarget target,
StructuredGraph graph,
CompilationResult result) |
void |
notifyCompilationTruffleTierFinished(OptimizedCallTarget target,
StructuredGraph graph) |
addASTSizeProperty, log, notifyCompilationGraalTierFinished, notifyCompilationSplit, notifyShutdown, notifyStartup
private final ThreadLocal<TraceCompilationListener.LocalCompilation> currentCompilation
private TraceCompilationListener()
public static void install(GraalTruffleRuntime runtime)
public void notifyCompilationQueued(OptimizedCallTarget target)
GraalTruffleCompilationListener
notifyCompilationQueued
in interface GraalTruffleCompilationListener
notifyCompilationQueued
in class AbstractDebugCompilationListener
public void notifyCompilationDequeued(OptimizedCallTarget target, Object source, CharSequence reason)
GraalTruffleCompilationListener
notifyCompilationDequeued
in interface GraalTruffleCompilationListener
notifyCompilationDequeued
in class AbstractDebugCompilationListener
source
- the source object that caused the compilation to be unqueued. For example the
source Node
object. May be null
.reason
- a textual description of the reason why the compilation was unqueued. May be
null
.public void notifyCompilationFailed(OptimizedCallTarget target, StructuredGraph graph, Throwable t)
notifyCompilationFailed
in interface GraalTruffleCompilationListener
notifyCompilationFailed
in class AbstractDebugCompilationListener
public void notifyCompilationStarted(OptimizedCallTarget target)
notifyCompilationStarted
in interface GraalTruffleCompilationListener
notifyCompilationStarted
in class AbstractDebugCompilationListener
public void notifyCompilationTruffleTierFinished(OptimizedCallTarget target, StructuredGraph graph)
notifyCompilationTruffleTierFinished
in interface GraalTruffleCompilationListener
notifyCompilationTruffleTierFinished
in class AbstractDebugCompilationListener
public void notifyCompilationSuccess(OptimizedCallTarget target, StructuredGraph graph, CompilationResult result)
notifyCompilationSuccess
in interface GraalTruffleCompilationListener
notifyCompilationSuccess
in class AbstractDebugCompilationListener
private static String formatSourceSection(com.oracle.truffle.api.source.SourceSection sourceSection)
public void notifyCompilationInvalidated(OptimizedCallTarget target, Object source, CharSequence reason)
GraalTruffleCompilationListener
notifyCompilationInvalidated
in interface GraalTruffleCompilationListener
notifyCompilationInvalidated
in class AbstractDebugCompilationListener
source
- the source object that caused the compilation to be invalidated. For example
the source Node
object. May be null
.reason
- a textual description of the reason why the compilation was invalidated. May be
null
.private static void addSourceInfo(Map<String,Object> properties, Object source)