SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
stk_mem_stats_t Struct Reference

Snapshot of allocator statistics. More...

#include <stk_c_memory.h>

Collaboration diagram for stk_mem_stats_t:

Public Attributes

size_t capacity
 Total capacity in bytes.
size_t allocated
 Bytes currently allocated.
size_t peak_allocated
 High watermark of allocated bytes.
size_t allocate_count
 Number of successful allocations.
size_t free_count
 Number of successful frees.
size_t alloc_fail_count
 Number of allocation requests that could not be satisfied.
size_t min_ever_free
 Minimum free bytes recorded since the start (watermark).

Detailed Description

Snapshot of allocator statistics.

Note
Layout-compatible in meaning with stk::memory::MemoryAllocator::Stats. Byte counters of pools are in bytes (BlockMemoryPool: blocks * block size; BytePool: used blocks including their headers).
See also
stk_blockpool_get_stats(), stk_bytepool_get_stats(), stk_mem_get_stats()

Definition at line 315 of file stk_c_memory.h.

Member Data Documentation

◆ alloc_fail_count

size_t stk_mem_stats_t::alloc_fail_count

Number of allocation requests that could not be satisfied.

Definition at line 322 of file stk_c_memory.h.

◆ allocate_count

size_t stk_mem_stats_t::allocate_count

Number of successful allocations.

Definition at line 320 of file stk_c_memory.h.

◆ allocated

size_t stk_mem_stats_t::allocated

Bytes currently allocated.

Definition at line 318 of file stk_c_memory.h.

◆ capacity

size_t stk_mem_stats_t::capacity

Total capacity in bytes.

Definition at line 317 of file stk_c_memory.h.

◆ free_count

size_t stk_mem_stats_t::free_count

Number of successful frees.

Definition at line 321 of file stk_c_memory.h.

◆ min_ever_free

size_t stk_mem_stats_t::min_ever_free

Minimum free bytes recorded since the start (watermark).

Definition at line 323 of file stk_c_memory.h.

◆ peak_allocated

size_t stk_mem_stats_t::peak_allocated

High watermark of allocated bytes.

Definition at line 319 of file stk_c_memory.h.


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