pmp-library  1.2.1

A simple class to retrieve memory usage information. More...

#include <pmp/MemoryUsage.h>

Static Public Member Functions

static size_t max_size ()
 Get the maximum memory size the application has used so far. More...
 
static size_t current_size ()
 Get the currently used memory. More...
 

Detailed Description

A simple class to retrieve memory usage information.

Member Function Documentation

◆ current_size()

size_t current_size ( )
static

Get the currently used memory.

Returns
the current resident set size (RSS) in bytes

◆ max_size()

size_t max_size ( )
static

Get the maximum memory size the application has used so far.

Returns
the max. resident set size (RSS) in bytes