Sparksee 6.1.0
PlatformStatistics Class Reference

Platform data and statistics. More...

#include <common.h>

Public Member Functions

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

Friends

class Platform

Detailed Description

Platform data and statistics.

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

Member Function Documentation

◆ GetAvailableMem()

int64_t PlatformStatistics::GetAvailableMem ( ) const
inline

Gets avialable (free) memory size in Bytes.

Returns
Avialable (free) memory size in Bytes.

◆ GetNumCPUs()

int32_t PlatformStatistics::GetNumCPUs ( ) const
inline

Gets the number of CPUs.

Returns
The number of CPUs.

◆ GetRealTime()

int64_t PlatformStatistics::GetRealTime ( ) const
inline

Gets time in microseconds (since epoch).

Returns
Time in microseconds (since epoch).

◆ GetSystemTime()

int64_t PlatformStatistics::GetSystemTime ( ) const
inline

Gets CPU system time.

Returns
CPU system time.

◆ GetTotalMem()

int64_t PlatformStatistics::GetTotalMem ( ) const
inline

Gets physical memory size in Bytes.

Returns
Physical memory size in Bytes.

◆ GetUserTime()

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: