Package one.nio.os.perf
Class PerfCounterGlobal
- java.lang.Object
-
- one.nio.os.perf.PerfCounter
-
- one.nio.os.perf.PerfCounterGlobal
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class PerfCounterGlobal extends PerfCounter
-
-
Field Summary
-
Fields inherited from class one.nio.os.perf.PerfCounter
readFormat
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longget()longgetForCpu(int cpu)protected long[]getRawValue()CounterValuegetValue()LocalValuegetValueForCpu(int cpu)voidstoreTo(BpfMap map)voidstoreTo(BpfMap map, int cpu)-
Methods inherited from class one.nio.os.perf.PerfCounter
attachBpf, disable, enable, event, hasReadFormat, newBuffer, nextSample, refresh, reset, toValue
-
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classPerfCounter
-
get
public long get() throws IOException- Overrides:
getin classPerfCounter- Throws:
IOException
-
getValue
public CounterValue getValue() throws IOException
- Overrides:
getValuein classPerfCounter- Throws:
IOException
-
getForCpu
public long getForCpu(int cpu) throws IOException- Throws:
IOException
-
getValueForCpu
public LocalValue getValueForCpu(int cpu) throws IOException
- Throws:
IOException
-
getRawValue
protected long[] getRawValue() throws IOException- Overrides:
getRawValuein classPerfCounter- Throws:
IOException
-
storeTo
public void storeTo(BpfMap map) throws IOException
- Throws:
IOException
-
storeTo
public void storeTo(BpfMap map, int cpu) throws IOException
- Throws:
IOException
-
-