Class MemoryUsage

Class Documentation

class MemoryUsage

A simple class to retrieve memory usage information.

Public Static Functions

static size_t max_size()

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

Returns:

the max. resident set size (RSS) in bytes

static size_t current_size()

Get the currently used memory.

Returns:

the current resident set size (RSS) in bytes