AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
painlessmesh::memory::MemoryStats Struct Reference

#include <memory.hpp>

Public Member Functions

void record_allocation (size_t size)
 
void record_deallocation (size_t size)
 
void reset ()
 

Public Attributes

size_t total_allocated = 0
 
size_t total_freed = 0
 
size_t current_usage = 0
 
size_t peak_usage = 0
 
size_t allocation_count = 0
 

Detailed Description

Memory usage statistics for monitoring

Member Function Documentation

◆ record_allocation()

void painlessmesh::memory::MemoryStats::record_allocation ( size_t  size)
inline

◆ record_deallocation()

void painlessmesh::memory::MemoryStats::record_deallocation ( size_t  size)
inline

◆ reset()

void painlessmesh::memory::MemoryStats::reset ( )
inline

Member Data Documentation

◆ allocation_count

size_t painlessmesh::memory::MemoryStats::allocation_count = 0

◆ current_usage

size_t painlessmesh::memory::MemoryStats::current_usage = 0

◆ peak_usage

size_t painlessmesh::memory::MemoryStats::peak_usage = 0

◆ total_allocated

size_t painlessmesh::memory::MemoryStats::total_allocated = 0

◆ total_freed

size_t painlessmesh::memory::MemoryStats::total_freed = 0

The documentation for this struct was generated from the following file: