BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Functions
BALL::SysInfo Namespace Reference

Functions

BALL_EXPORT LongIndex getAvailableMemory ()
BALL_EXPORT LongIndex getFreeMemory ()
BALL_EXPORT LongIndex getTotalMemory ()
BALL_EXPORT LongIndex getBufferedMemory ()
BALL_EXPORT LongIndex getFreeSwapSpace ()
BALL_EXPORT Time getUptime ()
BALL_EXPORT Index getNumberOfProcessors ()

Detailed Description

Namespace for methods to obtain informations about the systems hardware. All memory values are returned in amounts of byte. See the man page for sysinfo, GetSystemInfo and /proc/cpuinfo under Linux.

See also:
http://msdn.microsoft.com/library/en-us/memory/base/memorystatus_str.asp
http://msdn.microsoft.com/library/en-us/memory/base/globalmemorystatusex.asp

Function Documentation

The the total amount of free memory (under linux + getBufferedMemory()).

Returns:
-1 if no valid value could be read

Return the buffered memory under Linux

Returns:
-1 if no valid value could be read

The the amount of freee memory.

Returns:
-1 if no valid value could be read

Return the the amount of free swap memory.

Returns:
-1 if no valid value could be read

Get the number of processors

Returns:
-1 if no valid value could be read

The the total amount of memory.

Returns:
-1 if no valid value could be read

Get the uptime of the system. Works currently only under Unix, not under Windows.

Returns:
-1 if no valid value could be read
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines