|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mmtk.utility.statistics.Counter
org.mmtk.utility.statistics.LongCounter
org.mmtk.utility.statistics.PerfEvent
public final class PerfEvent
This class represents a perf event, such as cache misses, etc.
| Field Summary | |
|---|---|
private static int |
BYTES_TO_READ
Three 64 bit values is 24 bytes |
private boolean |
contended
True if the counter did not run due to contention for a physical counter |
static boolean |
dataWasScaled
True if any data was scaled |
private int |
index
The index of the counter in the native array |
private boolean |
overflowed
True if the counter overflowed |
private long |
previousValue
The previously read value of the counter (used to detect overflow) |
private static int |
RAW_COUNT
|
private long[] |
readBuffer
A buffer passed to the native code when reading values, returns the tuple RAW_COUNT, TIME_ENABLED, TIME_RUNNING |
private boolean |
scaled
True if the counter did not run all of the time and has been scaled appropriately |
private static int |
TIME_ENABLED
|
private static int |
TIME_RUNNING
|
| Fields inherited from class org.mmtk.utility.statistics.LongCounter |
|---|
totalCount |
| Fields inherited from class org.mmtk.utility.statistics.Counter |
|---|
complex |
| Constructor Summary | |
|---|---|
PerfEvent(int index,
String name)
|
|
| Method Summary | |
|---|---|
String |
getColumnSuffix()
Return the (option) suffix to be used when reporting this counter |
protected long |
getCurrentValue()
Counters are 64 bit unsigned in the kernel but only 63 bits are available in Java |
(package private) void |
printValue(long value)
Print the given value |
| Methods inherited from class org.mmtk.utility.statistics.LongCounter |
|---|
getLastTotal, phaseChange, printCount, printMax, printMin, printTotal, printTotal, start, stop |
| Methods inherited from class org.mmtk.utility.statistics.Counter |
|---|
getName, getStart, isComplex, mergePhases, printLast |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean contended
private boolean scaled
private boolean overflowed
private int index
private long previousValue
private final long[] readBuffer
private static final int RAW_COUNT
private static final int TIME_ENABLED
private static final int TIME_RUNNING
private static final int BYTES_TO_READ
public static boolean dataWasScaled
| Constructor Detail |
|---|
public PerfEvent(int index,
String name)
| Method Detail |
|---|
protected long getCurrentValue()
getCurrentValue in class LongCountervoid printValue(long value)
printValue in class LongCountervalue - The value to be printedpublic String getColumnSuffix()
Counter
getColumnSuffix in class Counter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||