Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
Loading...
Searching...
No Matches
kcenon::container::internal::fixed_block_pool::statistics Struct Reference

Statistics for monitoring memory pool usage. More...

#include <memory_pool.h>

Collaboration diagram for kcenon::container::internal::fixed_block_pool::statistics:
Collaboration graph

Public Member Functions

double utilization_ratio () const
 
std::size_t memory_bytes () const
 

Public Attributes

std::size_t total_chunks
 
std::size_t allocated_blocks
 
std::size_t total_capacity
 
std::size_t free_blocks
 

Detailed Description

Statistics for monitoring memory pool usage.

Definition at line 81 of file memory_pool.h.

Member Function Documentation

◆ memory_bytes()

std::size_t kcenon::container::internal::fixed_block_pool::statistics::memory_bytes ( ) const
inline

Definition at line 94 of file memory_pool.h.

94 {
95 // This would need block_size, which we don't have in this struct
96 // For now, just return 0; caller can calculate if needed
97 return 0;
98 }

◆ utilization_ratio()

double kcenon::container::internal::fixed_block_pool::statistics::utilization_ratio ( ) const
inline

Definition at line 88 of file memory_pool.h.

References allocated_blocks, and total_capacity.

Member Data Documentation

◆ allocated_blocks

std::size_t kcenon::container::internal::fixed_block_pool::statistics::allocated_blocks

Definition at line 83 of file memory_pool.h.

Referenced by utilization_ratio().

◆ free_blocks

std::size_t kcenon::container::internal::fixed_block_pool::statistics::free_blocks

Definition at line 85 of file memory_pool.h.

◆ total_capacity

std::size_t kcenon::container::internal::fixed_block_pool::statistics::total_capacity

Definition at line 84 of file memory_pool.h.

Referenced by utilization_ratio().

◆ total_chunks

std::size_t kcenon::container::internal::fixed_block_pool::statistics::total_chunks

Definition at line 82 of file memory_pool.h.


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