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

Statistics for tracking allocator usage. More...

#include <allocator_traits.hpp>

Public Attributes

size_t total_allocated = 0
 Total bytes currently allocated.
 
size_t total_freed = 0
 Total bytes freed.
 
size_t peak_usage = 0
 Peak memory usage.
 
size_t allocation_count = 0
 Number of active allocations.
 
size_t total_allocations = 0
 Total number of allocations made.
 
size_t total_deallocations = 0
 Total number of deallocations made.
 
size_t alignment_waste = 0
 Bytes wasted due to alignment.
 

Detailed Description

Statistics for tracking allocator usage.

Provides metrics about memory usage, allocation counts, and fragmentation.

Definition at line 18 of file allocator_traits.hpp.

Member Data Documentation

◆ alignment_waste

size_t helios::memory::AllocatorStats::alignment_waste = 0

◆ allocation_count

size_t helios::memory::AllocatorStats::allocation_count = 0

◆ peak_usage

size_t helios::memory::AllocatorStats::peak_usage = 0

◆ total_allocated

◆ total_allocations

size_t helios::memory::AllocatorStats::total_allocations = 0

◆ total_deallocations

size_t helios::memory::AllocatorStats::total_deallocations = 0

◆ total_freed

size_t helios::memory::AllocatorStats::total_freed = 0