Package one.nio.os.perf
Class Perf
java.lang.Object
one.nio.os.perf.Perf
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose(int fd) static PerfCounteropen(PerfEvent event, int pid, int cpu, PerfOption... options) static PerfCounteropen(PerfEvent event, String cgroup, int cpu, PerfOption... options) static intstatic PerfCounterGlobalopenGlobal(PerfEvent event, int pid, PerfOption... options)
-
Field Details
-
IS_SUPPORTED
public static final boolean IS_SUPPORTED -
CURRENT_PID
public static final int CURRENT_PID- See Also:
-
ANY_PID
public static final int ANY_PID- See Also:
-
ANY_CPU
public static final int ANY_CPU- See Also:
-
-
Constructor Details
-
Perf
public Perf()
-
-
Method Details
-
open
public static PerfCounter open(PerfEvent event, int pid, int cpu, PerfOption... options) throws IOException - Throws:
IOException
-
open
public static PerfCounter open(PerfEvent event, String cgroup, int cpu, PerfOption... options) throws IOException - Throws:
IOException
-
openGlobal
public static PerfCounterGlobal openGlobal(PerfEvent event, int pid, PerfOption... options) throws IOException - Throws:
IOException
-
openFile
- Throws:
IOException
-
close
public static void close(int fd)
-