Sparksee  6.0.2
PlatformStatistics Class Reference

Platform data and statistics. More...

Public Member Functions

 PlatformStatistics ()
 Creates a new instance setting all values to 0.
 
int32_t GetNumCPUs () const
 Gets the number of CPUs. More...
 
int64_t GetRealTime () const
 Gets time in microseconds (since epoch). More...
 
int64_t GetUserTime () const
 Gets CPU user time. More...
 
int64_t GetSystemTime () const
 Gets CPU system time. More...
 
int64_t GetTotalMem () const
 Gets physical memory size in Bytes. More...
 
int64_t GetAvailableMem () const
 Gets avialable (free) memory size in Bytes. More...
 

Friends

class Platform
 

Detailed Description

Platform data and statistics.

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

Member Function Documentation

int64_t PlatformStatistics::GetAvailableMem ( ) const
inline

Gets avialable (free) memory size in Bytes.

Returns
Avialable (free) memory size in Bytes.
int32_t PlatformStatistics::GetNumCPUs ( ) const
inline

Gets the number of CPUs.

Returns
The number of CPUs.
int64_t PlatformStatistics::GetRealTime ( ) const
inline

Gets time in microseconds (since epoch).

Returns
Time in microseconds (since epoch).
int64_t PlatformStatistics::GetSystemTime ( ) const
inline

Gets CPU system time.

Returns
CPU system time.
int64_t PlatformStatistics::GetTotalMem ( ) const
inline

Gets physical memory size in Bytes.

Returns
Physical memory size in Bytes.
int64_t PlatformStatistics::GetUserTime ( ) const
inline

Gets CPU user time.

Returns
CPU user time.

The documentation for this class was generated from the following file: