Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::mem::AllocatorStats Struct Reference

Runtime statistics snapshot for PMR allocators. More...

#include <common.hpp>

Public Attributes

size_t total_allocated = 0
 Bytes currently reserved or bumped (allocator-specific semantics).
size_t peak_usage = 0
 High-water mark of total_allocated.
size_t allocation_count = 0
 Number of live allocations tracked by the allocator.
size_t total_allocations = 0
 Total successful allocation calls.
size_t total_deallocations = 0
 Total deallocation calls (including arena no-op deallocates).
size_t alignment_waste = 0
 Padding bytes consumed for alignment.

Detailed Description

Runtime statistics snapshot for PMR allocators.

Definition at line 163 of file common.hpp.

Member Data Documentation

◆ alignment_waste

size_t helios::mem::AllocatorStats::alignment_waste = 0

Padding bytes consumed for alignment.

Definition at line 175 of file common.hpp.

◆ allocation_count

size_t helios::mem::AllocatorStats::allocation_count = 0

Number of live allocations tracked by the allocator.

Definition at line 169 of file common.hpp.

◆ peak_usage

size_t helios::mem::AllocatorStats::peak_usage = 0

High-water mark of total_allocated.

Definition at line 167 of file common.hpp.

◆ total_allocated

size_t helios::mem::AllocatorStats::total_allocated = 0

Bytes currently reserved or bumped (allocator-specific semantics).

Definition at line 165 of file common.hpp.

◆ total_allocations

size_t helios::mem::AllocatorStats::total_allocations = 0

Total successful allocation calls.

Definition at line 171 of file common.hpp.

◆ total_deallocations

size_t helios::mem::AllocatorStats::total_deallocations = 0

Total deallocation calls (including arena no-op deallocates).

Definition at line 173 of file common.hpp.