libcommonc++
0.7
|
System memory utilization statistics. More...
#include <MemoryStats.h++>
Public Member Functions | |
MemoryStats () | |
Construct a new MemoryStats object. More... | |
~MemoryStats () | |
Destructor. More... | |
uint_t | getPhysicalMemoryTotal () const |
Get the total amount of physical memory, in bytes. More... | |
uint_t | getPhysicalMemoryFree () const |
Get the amount of free physical memory, in bytes. More... | |
uint_t | getPhysicalMemoryUsed () const |
Get the amount of used physical memory, in bytes. More... | |
uint_t | getVirtualMemoryTotal () const |
Get the total amount of virtual memory, in bytes. More... | |
uint_t | getVirtualMemoryFree () const |
Get the amount of free virtual memory, in bytes. More... | |
uint_t | getVirtualMemoryUsed () const |
Get the amount of used virtual memory, in bytes. More... | |
bool | collect () |
Collect (update) the stats represented by this object. More... | |
void | reset () |
Reset the stats object. More... | |
System memory utilization statistics.
These statistics include the total amount of physical and virtual memory and the amount of each that is currently in use.
MemoryStats | ( | ) |
Construct a new MemoryStats object.
~MemoryStats | ( | ) |
Destructor.
|
virtual |
Collect (update) the stats represented by this object.
Implements SystemStats.
|
inline |
Get the amount of free physical memory, in bytes.
|
inline |
Get the total amount of physical memory, in bytes.
|
inline |
Get the amount of used physical memory, in bytes.
|
inline |
Get the amount of free virtual memory, in bytes.
|
inline |
Get the total amount of virtual memory, in bytes.
On Mac OS X, there is no fixed-size swap partition; the amount of virtual memory is limited only by disk space on the root partition, so this value is always 0.
|
inline |
Get the amount of used virtual memory, in bytes.
|
virtual |
Reset the stats object.
Implements SystemStats.