public class PerfCounter
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
protected long |
readFormat |
| Modifier and Type | Method and Description |
|---|---|
void |
attachBpf(int fd) |
void |
close() |
void |
disable() |
void |
enable() |
PerfEvent |
event() |
long |
get() |
protected long[] |
getRawValue() |
CounterValue |
getValue() |
boolean |
hasReadFormat(int readFormat) |
protected long[] |
newBuffer() |
PerfSample |
nextSample() |
void |
refresh(int count) |
void |
reset() |
protected LocalValue |
toValue(long[] raw) |
public final PerfEvent event()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic long get()
throws java.io.IOException
java.io.IOExceptionpublic CounterValue getValue() throws java.io.IOException
java.io.IOExceptionprotected long[] getRawValue()
throws java.io.IOException
java.io.IOExceptionprotected long[] newBuffer()
protected LocalValue toValue(long[] raw)
public boolean hasReadFormat(int readFormat)
public PerfSample nextSample()
public void reset()
throws java.io.IOException
java.io.IOExceptionpublic void attachBpf(int fd)
throws java.io.IOException
java.io.IOExceptionpublic void enable()
throws java.io.IOException
java.io.IOExceptionpublic void disable()
throws java.io.IOException
java.io.IOExceptionpublic void refresh(int count)
throws java.io.IOException
java.io.IOException