public final class StatisticsListener extends AbstractGraalTruffleRuntimeListener
runtime| Modifier and Type | Method and Description |
|---|---|
static StatisticsListener |
createEngineListener(GraalTruffleRuntime runtime) |
static void |
install(GraalTruffleRuntime runtime) |
void |
onCompilationDequeued(OptimizedCallTarget target,
Object source,
CharSequence reason,
int tier)
Notifies this object after
target is removed from the compilation queue. |
void |
onCompilationFailed(OptimizedCallTarget target,
String reason,
boolean bailout,
boolean permanentBailout,
int tier)
Notifies this object when compilation of
target fails. |
void |
onCompilationGraalTierFinished(OptimizedCallTarget target,
TruffleCompilerListener.GraphInfo graph)
Notifies this object when Graal compilation of a call target completes.
|
void |
onCompilationInvalidated(OptimizedCallTarget target,
Object source,
CharSequence reason)
Notifies this object when
target is invalidated. |
void |
onCompilationQueued(OptimizedCallTarget target,
int tier)
Notifies this object after
target is added to the compilation queue. |
void |
onCompilationSplit(OptimizedDirectCallNode callNode)
Notifies this object when the target of a Truffle call node is
cloned.
|
void |
onCompilationStarted(OptimizedCallTarget target,
TruffleCompilationTask task)
Notifies this object when compilation of
target is about to start. |
void |
onCompilationSuccess(OptimizedCallTarget target,
TruffleInlining inliningDecision,
TruffleCompilerListener.GraphInfo graph,
TruffleCompilerListener.CompilationResultInfo result,
int tier)
Notifies this object when compilation of
target succeeds. |
void |
onCompilationTruffleTierFinished(OptimizedCallTarget target,
TruffleInlining inliningDecision,
TruffleCompilerListener.GraphInfo graph)
Notifies this object when compilation of
target has completed partial evaluation and
is about to perform compilation of the graph produced by partial evaluation. |
void |
onEngineClosed(EngineData runtimeData)
Notifies this object an engine using the
GraalTruffleRuntime was closed. |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddASTSizeProperty, isPermanentFailure, onCompilationDeoptimized, onCompilationSplitFailed, onShutdownpublic static void install(GraalTruffleRuntime runtime)
public static StatisticsListener createEngineListener(GraalTruffleRuntime runtime)
public void onCompilationSplit(OptimizedDirectCallNode callNode)
GraalTruffleRuntimeListenercallNode - the call node whose target has just been clonedpublic void onCompilationQueued(OptimizedCallTarget target, int tier)
GraalTruffleRuntimeListenertarget is added to the compilation queue.target - the call target that has just been enqueued for compilationtier - Which compilation tier is in question.public void onCompilationDequeued(OptimizedCallTarget target, Object source, CharSequence reason, int tier)
GraalTruffleRuntimeListenertarget is removed from the compilation queue.target - the call target that has just been removed from the compilation queuesource - 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.tier - Which compilation tier is in question.public void onCompilationInvalidated(OptimizedCallTarget target, Object source, CharSequence reason)
GraalTruffleRuntimeListenertarget is invalidated.target - the call target whose compiled code was just invalidatedsource - 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.public void onCompilationStarted(OptimizedCallTarget target, TruffleCompilationTask task)
GraalTruffleRuntimeListenertarget is about to start.target - the call target about to be compiledtask - which compilation task is in question.public void onCompilationTruffleTierFinished(OptimizedCallTarget target, TruffleInlining inliningDecision, TruffleCompilerListener.GraphInfo graph)
GraalTruffleRuntimeListenertarget has completed partial evaluation and
is about to perform compilation of the graph produced by partial evaluation.target - the call target being compiledinliningDecision - the inlining plan used during partial evaluationgraph - access to compiler graph infopublic void onCompilationGraalTierFinished(OptimizedCallTarget target, TruffleCompilerListener.GraphInfo graph)
GraalTruffleRuntimeListenerGraalTruffleRuntimeListener.onCompilationTruffleTierFinished(org.graalvm.compiler.truffle.runtime.OptimizedCallTarget, org.graalvm.compiler.truffle.runtime.TruffleInlining, org.graalvm.compiler.truffle.common.TruffleCompilerListener.GraphInfo) and code installation.target - the call target that was compiledgraph - the graph representing targetpublic void onCompilationSuccess(OptimizedCallTarget target, TruffleInlining inliningDecision, TruffleCompilerListener.GraphInfo graph, TruffleCompilerListener.CompilationResultInfo result, int tier)
GraalTruffleRuntimeListenertarget succeeds.target - the call target whose compilation succeededinliningDecision - the inlining plan used during the compilationgraph - access to compiler graph inforesult - access to compilation result infotier - Which compilation tier is in question.public void onCompilationFailed(OptimizedCallTarget target, String reason, boolean bailout, boolean permanentBailout, int tier)
GraalTruffleRuntimeListenertarget fails.target - the call target whose compilation failedreason - a description of the failurebailout - specifies whether the failure was a bailout or an error in the compiler. A
bailout means the compiler aborted the compilation based on some of property of
target (e.g., too big). A non-bailout means an unexpected error in the
compiler itself.permanentBailout - specifies if a bailout is due to a condition that probably won't
change if the target is compiled again. This value is meaningless if
bailout == false.tier - Which compilation tier is in question.public void onEngineClosed(EngineData runtimeData)
GraalTruffleRuntimeListenerGraalTruffleRuntime was closed.runtimeData - the engine's compiler configuration