|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.utility.statistics.Counter
public abstract class Counter
This abstract class describes the interface of a generic counter.
Field Summary | |
---|---|
protected boolean |
complex
Allow for counters whose values are too complex to be simply printed out. |
private boolean |
mergephases
|
private String |
name
|
private boolean |
start
|
Constructor Summary | |
---|---|
Counter(String name)
Constructor |
|
Counter(String name,
boolean start)
Constructor |
|
Counter(String name,
boolean start,
boolean mergephases)
Constructor |
Method Summary | |
---|---|
(package private) String |
getColumnSuffix()
Return the (option) suffix to be used when reporting this counter |
(package private) String |
getName()
Return the name of this counter |
(package private) boolean |
getStart()
Return true if this counter is implicitly started when
startAll() is called. |
(package private) boolean |
isComplex()
|
(package private) boolean |
mergePhases()
Return true if this counter will merge stats for GC and mutator phases. |
(package private) abstract void |
phaseChange(int oldPhase)
The phase has changed (from GC to mutator or mutator to GC). |
(package private) abstract void |
printCount(int phase)
Print the value of this counter for the given phase |
void |
printLast()
Print statistics for the most recent phase |
(package private) abstract void |
printMax(boolean mutator)
Print the current maximum value for either the mutator or GC phase |
(package private) abstract void |
printMin(boolean mutator)
Print the current minimum value for either the mutator or GC phase |
(package private) abstract void |
printTotal()
Print the current total for this counter |
(package private) abstract void |
printTotal(boolean mutator)
Print the current total for either the mutator or GC phase |
(package private) abstract void |
start()
Start this counter |
(package private) abstract void |
stop()
Stop this counter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final String name
private final boolean start
private final boolean mergephases
protected boolean complex
Constructor Detail |
---|
Counter(String name)
name
- The name to be associated with this counterCounter(String name, boolean start)
name
- The name to be associated with this counterstart
- True if this counter is to be implicitly started
when startAll()
is called (otherwise the counter
must be explicitly started).Counter(String name, boolean start, boolean mergephases)
name
- The name to be associated with this counterstart
- True if this counter is to be implicitly started
when startAll()
is called (otherwise the counter
must be explicitly started).mergephases
- True if this counter does not separately
report GC and Mutator phases.Method Detail |
---|
abstract void start()
abstract void stop()
abstract void phaseChange(int oldPhase)
oldPhase
- The last phaseabstract void printCount(int phase)
phase
- The phase to be printedabstract void printTotal()
abstract void printTotal(boolean mutator)
mutator
- true
if the total for the mutator phases is to be
printed (otherwise the total for the GC phases will be printed).abstract void printMin(boolean mutator)
mutator
- true
if the minimum for the mutator phase is to be
printed (otherwise the minimum for the GC phase will be printed).abstract void printMax(boolean mutator)
mutator
- true
if the maximum for the mutator phase is to be
printed (otherwise the maximum for the GC phase will be printed).public void printLast()
String getName()
String getColumnSuffix()
boolean getStart()
true
if this counter is implicitly started when
startAll()
is called.
true
if this counter is implicitly started when
startAll()
is called.boolean mergePhases()
boolean isComplex()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |