RTEMS
Public Attributes | List of all members
Heap_Statistics Struct Reference

Run-time heap statistics. More...

#include <heapinfo.h>

Public Attributes

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.

Definition at line 40 of file heapinfo.h.

Member Data Documentation

◆ free_size

uintptr_t Heap_Statistics::free_size

Current free size in bytes.

This value is an integral multiple of the page size.

Definition at line 67 of file heapinfo.h.

◆ 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.

Definition at line 46 of file heapinfo.h.

◆ 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.

Definition at line 53 of file heapinfo.h.

◆ 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.

Definition at line 74 of file heapinfo.h.

◆ size

uintptr_t Heap_Statistics::size

Size of the allocatable area in bytes.

This value is an integral multiple of the page size.

Definition at line 60 of file heapinfo.h.


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