
Platform-dependent resident memory (RSS) utilities. More...
#include "us_memory.h"
Static Public Member Functions | |
| static long int | rss_now (void) |
| Return currently used RSS memory. More... | |
| static long int | rss_max (long int &rssmax) |
| Update and return the maximum memory used. More... | |
| static int | memory_profile (int *=0, int *=0, int *=0) |
| Return memory profile: used and available. More... | |
Platform-dependent resident memory (RSS) utilities.
This class provides utilites for monitoring memory usage. All methods are static.
Definition at line 14 of file us_memory.h.
|
static |
Return memory profile: used and available.
| pMemA | Pointer for memory currently available in MB |
| pMemT | Pointer for memory total available in MB |
| pMemU | Pointer for memory currently in use in MB |
Definition at line 87 of file us_memory.cpp.
|
static |
Update and return the maximum memory used.
| rssmax | Input/output maximum RSS in kilobytes |
Definition at line 79 of file us_memory.cpp.
|
static |
Return currently used RSS memory.
Definition at line 27 of file us_memory.cpp.
1.8.3.1-20130324