Skip to content
Sections
Personal tools
You are here: Home » BALLView » Documentation » 1.2 » namespaceBALL_1_1SysInfo_html

BALL::SysInfo Namespace Reference
[Operating system support]

Namespace for methods to obtain informations about the systems hardware. More...

Functions

BALL_EXPORT LongIndex getAvailableMemory ()
The the total amount of free memory (under linux + getBufferedMemory()).
BALL_EXPORT LongIndex getFreeMemory ()
The the amount of freee memory.
BALL_EXPORT LongIndex getTotalMemory ()
The the total amount of memory.
BALL_EXPORT LongIndex getBufferedMemory ()
Return the buffered memory under Linux.
BALL_EXPORT LongIndex getFreeSwapSpace ()
Return the the amount of free swap memory.
BALL_EXPORT Time getUptime ()
Get the uptime of the system.
BALL_EXPORT Index getNumberOfProcessors ()
Get the number of processors.

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

BALL_EXPORT LongIndex getAvailableMemory ( )

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

Returns:
-1 if no valid value could be read
BALL_EXPORT LongIndex getBufferedMemory ( )

Return the buffered memory under Linux.

Returns:
-1 if no valid value could be read
BALL_EXPORT LongIndex getFreeMemory ( )

The the amount of freee memory.

Returns:
-1 if no valid value could be read
BALL_EXPORT LongIndex getFreeSwapSpace ( )

Return the the amount of free swap memory.

Returns:
-1 if no valid value could be read
BALL_EXPORT Index getNumberOfProcessors ( )

Get the number of processors.

Returns:
-1 if no valid value could be read
BALL_EXPORT LongIndex getTotalMemory ( )

The the total amount of memory.

Returns:
-1 if no valid value could be read
BALL_EXPORT Time getUptime ( )

Get the uptime of the system.

Works currently only under Unix, not under Windows.

Returns:
-1 if no valid value could be read
 
 

Powered by Plone

This site conforms to the following standards: