Predator  [unstable] git snapshot
Functions
memdebug.hh File Reference
#include <string>
#include <sys/types.h>

Go to the source code of this file.

Functions

bool rawMemUsage (ssize_t *pDst)
 provide the raw amount of currently allocated memory (as glibc reports it)
bool initMemDrift ()
 initialize memory debugging, taking the current memory state as state zero
bool currentMemUsage (ssize_t *pDst)
 provide relative amount of currently allocated memory (subtracting drift)
bool printMemUsage (const char *justCompletedFncName)
 print the current amount of allocated memory
bool printPeakMemUsage ()
 print the peak over all calls of rawMemUsage(), but relative to the drift

Detailed Description

Todo:
some dox

Definition in file memdebug.hh.

Function Documentation

bool currentMemUsage ( ssize_t *  pDst)

provide relative amount of currently allocated memory (subtracting drift)

bool initMemDrift ( )

initialize memory debugging, taking the current memory state as state zero

bool printMemUsage ( const char *  justCompletedFncName)

print the current amount of allocated memory

bool printPeakMemUsage ( )

print the peak over all calls of rawMemUsage(), but relative to the drift

bool rawMemUsage ( ssize_t *  pDst)

provide the raw amount of currently allocated memory (as glibc reports it)