Class PlatformStatistics

java.lang.Object
com.sparsity.sparksee.gdb.PlatformStatistics

public class PlatformStatistics extends Object
Platform data and statistics.

Author:
Sparsity Technologies http://www.sparsity-technologies.com
  • 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.