Package one.nio.os.perf
Class PerfCounterGlobal
- java.lang.Object
-
- one.nio.os.perf.PerfCounter
-
- one.nio.os.perf.PerfCounterGlobal
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class PerfCounterGlobal extends PerfCounter
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int[]fds-
Fields inherited from class one.nio.os.perf.PerfCounter
fd, fdUpdater, readFormat
-
-
Constructor Summary
Constructors Constructor Description PerfCounterGlobal(PerfEvent event, long readFormat, int[] fds)
-
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)(package private) voidioctl(int cmd, int arg)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
-
-
-
-
Constructor Detail
-
PerfCounterGlobal
PerfCounterGlobal(PerfEvent event, long readFormat, int[] fds)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classPerfCounter
-
get
public long get() throws java.io.IOException- Overrides:
getin classPerfCounter- Throws:
java.io.IOException
-
getValue
public CounterValue getValue() throws java.io.IOException
- Overrides:
getValuein classPerfCounter- Throws:
java.io.IOException
-
getForCpu
public long getForCpu(int cpu) throws java.io.IOException- Throws:
java.io.IOException
-
getValueForCpu
public LocalValue getValueForCpu(int cpu) throws java.io.IOException
- Throws:
java.io.IOException
-
getRawValue
protected long[] getRawValue() throws java.io.IOException- Overrides:
getRawValuein classPerfCounter- Throws:
java.io.IOException
-
ioctl
void ioctl(int cmd, int arg) throws java.io.IOException- Overrides:
ioctlin classPerfCounter- Throws:
java.io.IOException
-
storeTo
public void storeTo(BpfMap map) throws java.io.IOException
- Throws:
java.io.IOException
-
storeTo
public void storeTo(BpfMap map, int cpu) throws java.io.IOException
- Throws:
java.io.IOException
-
-