RTEMS  5.1
Data Fields
Heap_Statistics Struct Reference

Run-time heap statistics. More...

#include <heapinfo.h>

Data Fields

uint64_t lifetime_allocated
 Lifetime number of bytes allocated from this heap. More...
 
uint64_t lifetime_freed
 Lifetime number of bytes freed to this heap. More...
 
uintptr_t size
 Size of the allocatable area in bytes. More...
 
uintptr_t free_size
 Current free size in bytes. More...
 
uintptr_t min_free_size
 Minimum free size ever in bytes. More...
 
uint32_t free_blocks
 Current number of free blocks.
 
uint32_t max_free_blocks
 Maximum number of free blocks ever.
 
uint32_t used_blocks
 Current number of used blocks.
 
uint32_t max_search
 Maximum number of blocks searched ever.
 
uint32_t searches
 Total number of searches.
 
uint32_t allocs
 Total number of successful allocations.
 
uint32_t failed_allocs
 Total number of failed allocations.
 
uint32_t frees
 Total number of successful frees.
 
uint32_t resizes
 Total number of successful resizes.
 

Detailed Description

Run-time heap statistics.

The value searches / allocs gives the mean number of searches per allocation, while max_search gives maximum number of searches ever performed on a single allocation call.

Field Documentation

◆ free_size

uintptr_t Heap_Statistics::free_size

Current free size in bytes.

This value is an integral multiple of the page size.

◆ lifetime_allocated

uint64_t Heap_Statistics::lifetime_allocated

Lifetime number of bytes allocated from this heap.

This value is an integral multiple of the page size.

◆ lifetime_freed

uint64_t Heap_Statistics::lifetime_freed

Lifetime number of bytes freed to this heap.

This value is an integral multiple of the page size.

◆ min_free_size

uintptr_t Heap_Statistics::min_free_size

Minimum free size ever in bytes.

This value is an integral multiple of the page size.

◆ size

uintptr_t Heap_Statistics::size

Size of the allocatable area in bytes.

This value is an integral multiple of the page size.


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