public abstract class InstrumentedEventCounterManager extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static boolean |
DEBUG |
| Constructor and Description |
|---|
InstrumentedEventCounterManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract Instruction |
createEventCounterInstruction(int handle,
int location,
double incrementValue)
Create a place holder instruction to represent the counted event.
|
abstract double |
getCounter(int handle,
int location) |
abstract void |
insertBaselineCounter()
Allow a counter to be inserted into a baseline compiled method.
|
abstract void |
mutateOptEventCounterInstruction(Instruction i,
IR ir)
Take an event counter instruction and mutate it into IR instructions that
will do the actual counting.
|
abstract int |
registerCounterSpace(int countersNeeded)
This method is called to called to tell the counter manager to
reserve the needed space.
|
abstract void |
resizeCounterSpace(int handle,
int countersNeeded)
This method is called to change the number of counters needed.
|
abstract void |
setCounter(int handle,
int location,
double value)
Sets the value of a counter.
|
static final boolean DEBUG
public InstrumentedEventCounterManager()
public abstract int registerCounterSpace(int countersNeeded)
countersNeeded - The number of counters being requestedpublic abstract void resizeCounterSpace(int handle, int countersNeeded)
handle - The handle describing which the data to be resizedcountersNeeded - The number of counters neededpublic abstract double getCounter(int handle, int location)
handle - The counter space to look inlocation - The counter whose value to returnpublic abstract void setCounter(int handle, int location, double value)
handle - The counter space to look inlocation - The counter whose value to returnvalue - The new value of the counterpublic abstract Instruction createEventCounterInstruction(int handle, int location, double incrementValue)
handle - The counter space to look inlocation - The counter whose value to returnincrementValue - The value to add to the counterpublic abstract void mutateOptEventCounterInstruction(Instruction i, IR ir)
i - the instruction to mutateir - the IR that contains the instructionpublic abstract void insertBaselineCounter()