com.sparsity.dex.gdb
Class PlatformStatistics

java.lang.Object
  extended by com.sparsity.dex.gdb.PlatformStatistics

public class PlatformStatistics
extends java.lang.Object

Platform data and statistics.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Constructor Summary
PlatformStatistics()
          Creates a new instance setting all values to 0.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformStatistics

public PlatformStatistics()
Creates a new instance setting all values to 0.

Method Detail

getRealTime

public long getRealTime()
Gets time in microseconds (since epoch).

Returns:
Time in microseconds (since epoch).

getAvailableMem

public long getAvailableMem()
Gets avialable (free) memory size in Bytes.

Returns:
Avialable (free) memory size in Bytes.

getTotalMem

public long getTotalMem()
Gets physical memory size in Bytes.

Returns:
Physical memory size in Bytes.

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.