public class InsertMethodInvocationCounter extends CompilerPhase
Note: one counter data, (MethodInvocationCounterData) is shared across all methods, and is initialized at boot time. This is unlike other kinds of instrumentation (such as basic block counters) where a separate data object is maintained for each method.
container| Constructor and Description |
|---|
InsertMethodInvocationCounter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
CompilerPhase |
newExecution(IR ir)
Return this instance of this phase.
|
void |
perform(IR ir)
Insert basic block counters
|
boolean |
shouldPerform(OptOptions options)
This method determines if the phase should be run, based on the
Options object it is passed.
|
dumpIR, dumpIR, getClassConstructor, getCompilerPhaseConstructor, getCompilerPhaseConstructor, performPhase, printingEnabled, reportAdditionalStats, setContainer, verifypublic InsertMethodInvocationCounter()
public CompilerPhase newExecution(IR ir)
newExecution in class CompilerPhaseir - not usedpublic final boolean shouldPerform(OptOptions options)
CompilerPhaseshouldPerform in class CompilerPhaseoptions - the compiler options for the compilationpublic final String getName()
getName in class CompilerPhasepublic final void perform(IR ir)
perform in class CompilerPhaseir - the governing IR