|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.InstrumentedEventCounterManager
public abstract class InstrumentedEventCounterManager
This interface defines the functionality necessary to be a InstrumentedEventCounterManager. The goal of this interface is to provide a mechanism for instrumentation phases to performing counting of events, but to keep the implemntation of the counters completely hidden.
| Field Summary | |
|---|---|
(package private) static boolean |
DEBUG
|
| Constructor Summary | |
|---|---|
InstrumentedEventCounterManager()
|
|
| Method Summary | |
|---|---|
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)
Get the value of a counter. |
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)
Set the value of a counter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final boolean DEBUG
| Constructor Detail |
|---|
public InstrumentedEventCounterManager()
| Method Detail |
|---|
public abstract int registerCounterSpace(int countersNeeded)
countersNeeded - The number of counters being requested
public abstract void resizeCounterSpace(int handle,
int countersNeeded)
handle - The handle describing which the data to be resizedcountersNeeded - The number of counters needed
public abstract double getCounter(int handle,
int location)
handle - The counter space to look inlocation - The counter whose value to return
public 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 counter
public 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 counter
public abstract void mutateOptEventCounterInstruction(Instruction i,
IR ir)
public abstract void insertBaselineCounter()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||