public final class JFRListener extends AbstractGraalTruffleRuntimeListener
runtime| Modifier and Type | Method and Description |
|---|---|
static void |
install(GraalTruffleRuntime runtime) |
static boolean |
isInstrumented(ResolvedJavaMethod method) |
void |
onCompilationDeoptimized(OptimizedCallTarget target,
com.oracle.truffle.api.frame.Frame frame)
Notifies this object when
target has just deoptimized and is now executing in the
Truffle interpreter instead of executing compiled code. |
void |
onCompilationFailed(OptimizedCallTarget target,
String reason,
boolean bailout,
boolean permanentBailout,
int tier)
Notifies this object when compilation of
target fails. |
void |
onCompilationInvalidated(OptimizedCallTarget target,
Object source,
CharSequence reason)
Notifies this object when
target is invalidated. |
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. |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddASTSizeProperty, onCompilationDequeued, onCompilationGraalTierFinished, onCompilationQueued, onCompilationSplit, onCompilationSplitFailed, onEngineClosed, onShutdownpublic static void install(GraalTruffleRuntime runtime)
public static boolean isInstrumented(ResolvedJavaMethod method)
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 onCompilationDeoptimized(OptimizedCallTarget target, com.oracle.truffle.api.frame.Frame frame)
GraalTruffleRuntimeListenertarget has just deoptimized and is now executing in the
Truffle interpreter instead of executing compiled code.target - the call target whose compiled code was just deoptimizedpublic 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 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 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 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.