GitHub link
PMP
The Polygon Mesh Processing Library
MemoryUsage Class Reference

A simple class to retrieve memory usage information.

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

Member Function Documentation

◆ current_size()

size_t current_size ( )
static
Returns
the current resident set size (RSS) in bytes

◆ max_size()

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