public class PlatformStatistics
extends java.lang.Object
Constructor and Description |
---|
PlatformStatistics()
Creates a new instance setting all values to 0.
|
Modifier and Type | Method and Description |
---|---|
long |
getAvailableMem()
Gets avialable (free) memory size in Bytes.
|
int |
getNumCPUs()
Gets the number of CPUs.
|
long |
getRealTime()
Gets time in microseconds (since epoch).
|
long |
getSystemTime()
Gets CPU system time.
|
long |
getTotalMem()
Gets physical memory size in Bytes.
|
long |
getUserTime()
Gets CPU user time.
|
public PlatformStatistics()
public long getTotalMem()
public long getAvailableMem()
public long getRealTime()
public long getSystemTime()
public long getUserTime()
public int getNumCPUs()