Class PlatformStatistics
java.lang.Object
com.sparsity.sparksee.gdb.PlatformStatistics
Platform data and statistics.
- Author:
- Sparsity Technologies http://www.sparsity-technologies.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets avialable (free) memory size in Bytes.intGets the number of CPUs.longGets time in microseconds (since epoch).longGets CPU system time.longGets physical memory size in Bytes.longGets CPU user time.
-
Constructor Details
-
PlatformStatistics
public PlatformStatistics()Creates a new instance setting all values to 0.
-
-
Method Details
-
getTotalMem
public long getTotalMem()Gets physical memory size in Bytes.- Returns:
- Physical memory size in Bytes.
-
getAvailableMem
public long getAvailableMem()Gets avialable (free) memory size in Bytes.- Returns:
- Avialable (free) memory size in Bytes.
-
getRealTime
public long getRealTime()Gets time in microseconds (since epoch).- Returns:
- Time in microseconds (since epoch).
-
getSystemTime
public long getSystemTime()Gets CPU system time.- Returns:
- CPU system time.
-
getUserTime
public long getUserTime()Gets CPU user time.- Returns:
- CPU user time.
-
getNumCPUs
public int getNumCPUs()Gets the number of CPUs.- Returns:
- The number of CPUs.
-