@InterfaceAudience.Private @InterfaceStability.Unstable public class CpuTimeTracker extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
UNAVAILABLE |
| Constructor and Description |
|---|
CpuTimeTracker(long jiffyLengthInMillis) |
| Modifier and Type | Method and Description |
|---|---|
float |
getCpuTrackerUsagePercent()
Return percentage of cpu time spent over the time since last update.
|
String |
toString() |
void |
updateElapsedJiffies(BigInteger elapedJiffies,
long sampleTime) |
public static final int UNAVAILABLE
public float getCpuTrackerUsagePercent()
UNAVAILABLE if there haven't been 2 updates more than
MINIMUM_UPDATE_INTERVAL apartpublic void updateElapsedJiffies(BigInteger elapedJiffies, long sampleTime)
Copyright © 2018 CERN. All Rights Reserved.