gatb.core-API-1.4.2
SystemInfoLinux Class Reference

Linux implementation for ISystemInfo interface. More...

#include <SystemInfoCommon.hpp>

Inheritance diagram for SystemInfoLinux:
Inheritance graph

Public Member Functions

size_t getNbCores () const
 
std::string getHostName () const
 
u_int64_t getMemoryPhysicalTotal () const
 
u_int64_t getMemoryPhysicalUsed () const
 
u_int64_t getMemoryBuffers () const
 
u_int64_t getMemorySelfUsed () const
 
u_int64_t getMemorySelfMaxUsed () const
 
- Public Member Functions inherited from SystemInfoCommon
std::string getVersion () const
 
std::string getBuildDate () const
 
std::string getBuildCompiler () const
 
std::string getBuildOptions () const
 
std::string getBuildSystem () const
 
std::string getHomeDirectory () const
 
u_int64_t getMemoryPhysicalFree () const
 
u_int64_t getMemoryProject () const
 
virtual CpuInfocreateCpuInfo ()
 
- Public Member Functions inherited from ISystemInfo
virtual ~ISystemInfo ()
 

Detailed Description

Linux implementation for ISystemInfo interface.

Member Function Documentation

std::string getHostName ( ) const
virtual

Returns the host name.

Returns
the host name.

Implements ISystemInfo.

u_int64_t getMemoryBuffers ( ) const
virtual

Get the size (in bytes) of the buffers memory

Returns
the buffers memory size

Implements ISystemInfo.

u_int64_t getMemoryPhysicalTotal ( ) const
virtual

Get the size (in bytes) of the physical memory

Returns
the physical memory size

Implements ISystemInfo.

u_int64_t getMemoryPhysicalUsed ( ) const
virtual

Get the size (in bytes) of the used physical memory

Returns
the used physical memory size

Implements ISystemInfo.

u_int64_t getMemorySelfMaxUsed ( ) const
virtual

Get the size (in KBytes) of the memory used by the current process

Returns
the memory value

Reimplemented from SystemInfoCommon.

u_int64_t getMemorySelfUsed ( ) const
virtual

Get the size (in KBytes) of the memory used by the current process

Returns
the memory value

Reimplemented from SystemInfoCommon.

size_t getNbCores ( ) const
virtual

Returns the number of available cores.

Returns
the number of cores.

Implements ISystemInfo.


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