public final class PerfEvent extends LongCounter
Modifier and Type | Field and Description |
---|---|
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 |
totalCount
Modifier and Type | Method and Description |
---|---|
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
|
getLastTotal, phaseChange, printCount, printMax, printMin, printTotal, printTotal, start, stop
private boolean contended
true
if the counter did not run due to contention for a physical counterprivate boolean scaled
true
if the counter did not run all of the time and has been scaled appropriatelyprivate boolean overflowed
true
if the counter overflowedprivate final 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
public static boolean dataWasScaled
true
if any data was scaledprotected long getCurrentValue()
getCurrentValue
in class LongCounter
void printValue(long value)
LongCounter
printValue
in class LongCounter
value
- The value to be printedpublic String getColumnSuffix()
Counter
getColumnSuffix
in class Counter