Polygon Mesh Processing Library
Loading...
Searching...
No Matches
MemoryUsage Class Reference

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

#include <pmp/memory_usage.h>

Static Public Member Functions

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

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