public class Perf
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_CPU |
static int |
ANY_PID |
static int |
CURRENT_PID |
static boolean |
IS_SUPPORTED |
| Constructor and Description |
|---|
Perf() |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(int fd) |
static PerfCounter |
open(PerfEvent event,
int pid,
int cpu,
PerfOption... options) |
static PerfCounter |
open(PerfEvent event,
java.lang.String cgroup,
int cpu,
PerfOption... options) |
static int |
openFile(java.lang.String fileName) |
static PerfCounterGlobal |
openGlobal(PerfEvent event,
int pid,
PerfOption... options) |
public static final boolean IS_SUPPORTED
public static final int CURRENT_PID
public static final int ANY_PID
public static final int ANY_CPU
public static PerfCounter open(PerfEvent event, int pid, int cpu, PerfOption... options) throws java.io.IOException
java.io.IOExceptionpublic static PerfCounter open(PerfEvent event, java.lang.String cgroup, int cpu, PerfOption... options) throws java.io.IOException
java.io.IOExceptionpublic static PerfCounterGlobal openGlobal(PerfEvent event, int pid, PerfOption... options) throws java.io.IOException
java.io.IOExceptionpublic static int openFile(java.lang.String fileName)
throws java.io.IOException
java.io.IOExceptionpublic static void close(int fd)