public class CpuMetrics extends SystemMetrics<CpuMetrics>
Modifier and Type | Field and Description |
---|---|
double |
childSystemTimeS |
double |
childUserTimeS |
double |
systemTimeS |
double |
userTimeS |
Constructor and Description |
---|
CpuMetrics() |
Modifier and Type | Method and Description |
---|---|
CpuMetrics |
diff(CpuMetrics b,
CpuMetrics output)
Subtract the object passed in from the current object.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
CpuMetrics |
set(CpuMetrics metrics)
Sets all fields in this to values from the SystemMetrics object passed in: a _deep_ copy that
shouldn't share any values with other metrics objects.
|
CpuMetrics |
sum(CpuMetrics b,
CpuMetrics output)
Add values from the SystemMetrics object passed in and sets them on the output object,
if available.
|
java.lang.String |
toString() |
diff, sum
public double userTimeS
public double systemTimeS
public double childUserTimeS
public double childSystemTimeS
public CpuMetrics set(CpuMetrics metrics)
SystemMetrics
set
in class SystemMetrics<CpuMetrics>
public CpuMetrics sum(@Nullable CpuMetrics b, @Nullable CpuMetrics output)
SystemMetrics
sum
in class SystemMetrics<CpuMetrics>
public CpuMetrics diff(@Nullable CpuMetrics b, @Nullable CpuMetrics output)
SystemMetrics
diff
in class SystemMetrics<CpuMetrics>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object