UltraScan III
List of all members | Static Public Member Functions
US_Memory Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

int US_Memory::memory_profile ( int *  pMemA = 0,
int *  pMemT = 0,
int *  pMemU = 0 
)
static

Return memory profile: used and available.

Parameters
pMemAPointer for memory currently available in MB
pMemTPointer for memory total available in MB
pMemUPointer for memory currently in use in MB
Returns
Memory available as rounded percent of total

Definition at line 87 of file us_memory.cpp.

long int US_Memory::rss_max ( long int &  rssmax)
static

Update and return the maximum memory used.

Parameters
rssmaxInput/output maximum RSS in kilobytes
Returns
Maximum RSS in kilobytes

Definition at line 79 of file us_memory.cpp.

long int US_Memory::rss_now ( void  )
static

Return currently used RSS memory.

Returns
Currently used RSS in kilobytes

Definition at line 27 of file us_memory.cpp.


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