![]() |
RTEMS 6.1
|
Run-time heap statistics. More...
#include <heapinfo.h>
Data Fields | |
| uint64_t | lifetime_allocated |
| Lifetime number of bytes allocated from this heap. | |
| uint64_t | lifetime_freed |
| Lifetime number of bytes freed to this heap. | |
| uintptr_t | size |
| Size of the allocatable area in bytes. | |
| uintptr_t | free_size |
| Current free size in bytes. | |
| uintptr_t | min_free_size |
| Minimum free size ever in bytes. | |
| 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. | |
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.
| uintptr_t Heap_Statistics::free_size |
Current free size in bytes.
This value is an integral multiple of the page size.
| uint64_t Heap_Statistics::lifetime_allocated |
Lifetime number of bytes allocated from this heap.
This value is an integral multiple of the page size.
| uint64_t Heap_Statistics::lifetime_freed |
Lifetime number of bytes freed to this heap.
This value is an integral multiple of the page size.
| uintptr_t Heap_Statistics::min_free_size |
Minimum free size ever in bytes.
This value is an integral multiple of the page size.
| uintptr_t Heap_Statistics::size |
Size of the allocatable area in bytes.
This value is an integral multiple of the page size.