org.mmtk.utility.statistics
Class PerfCounter
java.lang.Object
org.mmtk.utility.statistics.Counter
org.mmtk.utility.statistics.LongCounter
org.mmtk.utility.statistics.PerfCounter
public class PerfCounter
- extends LongCounter
This class implements a simple performance counter, used to gather
data from hardware performance counters.
| Fields inherited from class org.mmtk.utility.statistics.Counter |
complex |
|
Method Summary |
protected long |
getCurrentValue()
Get the current value for this counter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerfCounter
public PerfCounter(String name)
- Constructor
- Parameters:
name - The name to be associated with this counter
PerfCounter
public PerfCounter(String name,
boolean start)
- Constructor
- Parameters:
name - The name to be associated with this counterstart - True if this counter is to be implicitly started at
boot time (otherwise the counter must be explicitly started).
PerfCounter
public PerfCounter(String name,
boolean start,
boolean gconly)
- Constructor
- Parameters:
name - The name to be associated with this counterstart - True if this counter is to be implicitly started at
boot time (otherwise the counter must be explicitly started).gconly - True if this counter only pertains to (and
therefore functions during) GC phases.
getCurrentValue
protected final long getCurrentValue()
- Get the current value for this counter
- Specified by:
getCurrentValue in class LongCounter
- Returns:
- The current value for this counter