Package one.nio.os.perf
Class PerfCounter
java.lang.Object
one.nio.os.perf.PerfCounter
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
PerfCounterGlobal
-
Field Summary
Fields -
Method Summary
-
Field Details
-
readFormat
protected final long readFormat
-
-
Method Details
-
event
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
get
- Throws:
IOException
-
getValue
- Throws:
IOException
-
getRawValue
- Throws:
IOException
-
newBuffer
protected long[] newBuffer() -
toValue
-
hasReadFormat
public boolean hasReadFormat(int readFormat) -
nextSample
-
reset
- Throws:
IOException
-
attachBpf
- Throws:
IOException
-
enable
- Throws:
IOException
-
disable
- Throws:
IOException
-
refresh
- Throws:
IOException
-