public class JniCpuStat
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
JniCpuStat.ContextSwitchProbe |
class |
JniCpuStat.CpuActiveProbe |
class |
JniCpuStat.CpuIdleProbe |
class |
JniCpuStat.CpuSystemProbe |
class |
JniCpuStat.CpuUserProbe |
Modifier and Type | Method and Description |
---|---|
static JniCpuStat |
create() |
AbstractMeter |
createActiveProbe(java.lang.String name,
int cpu,
double scale) |
AbstractMeter |
createContextSwitchProbe(java.lang.String name) |
AbstractMeter |
createIdleProbe(java.lang.String name,
int cpu,
double scale) |
AbstractMeter |
createSystemProbe(java.lang.String name,
int cpu,
double scale) |
AbstractMeter |
createUserProbe(java.lang.String name,
int cpu,
double scale) |
int |
getCpuMax() |
static boolean |
isEnabled() |
double |
sampleContextSwitch() |
double |
sampleCpuActive(int cpu) |
double |
sampleCpuIdle(int cpu) |
double |
sampleCpuSystem(int cpu) |
double |
sampleCpuUser(int cpu) |
void |
setSamplePeriod(long period) |
public static JniCpuStat create()
public static boolean isEnabled()
public int getCpuMax()
public void setSamplePeriod(long period)
public AbstractMeter createActiveProbe(java.lang.String name, int cpu, double scale)
public AbstractMeter createUserProbe(java.lang.String name, int cpu, double scale)
public AbstractMeter createSystemProbe(java.lang.String name, int cpu, double scale)
public AbstractMeter createIdleProbe(java.lang.String name, int cpu, double scale)
public AbstractMeter createContextSwitchProbe(java.lang.String name)
public double sampleCpuActive(int cpu)
public double sampleCpuIdle(int cpu)
public double sampleCpuUser(int cpu)
public double sampleCpuSystem(int cpu)
public double sampleContextSwitch()