public class CompilationListenerProfiler extends Object implements CompilationListener
CompilationListener to a CompilerProfiler.| Constructor and Description |
|---|
CompilationListenerProfiler(CompilerProfiler profiler,
int compileId)
Creates a compilation listener that passes events for a specific compilation identified by
compileId onto profiler. |
| Modifier and Type | Method and Description |
|---|---|
DebugContext.CompilerPhaseScope |
enterPhase(CharSequence name,
int nesting)
Notifies this listener that the compiler is starting a compiler phase.
|
void |
notifyInlining(ResolvedJavaMethod caller,
ResolvedJavaMethod callee,
boolean succeeded,
CharSequence message,
int bci)
Notifies this listener when the compiler considers inlining
callee into
caller. |
public CompilationListenerProfiler(CompilerProfiler profiler, int compileId)
compileId onto profiler.public void notifyInlining(ResolvedJavaMethod caller,
ResolvedJavaMethod callee,
boolean succeeded,
CharSequence message,
int bci)
CompilationListenercallee into
caller.notifyInlining in interface CompilationListenercaller - caller methodcallee - callee method considered for inlining into callersucceeded - true if callee was inlined into callermessage - extra information about inlining decisionbci - byte code index of call sitepublic DebugContext.CompilerPhaseScope enterPhase(CharSequence name, int nesting)
CompilationListenerenterPhase in interface CompilationListenername - the name of the phaseDebugContext.CompilerPhaseScope.close() method will be called when the
phase completes