#include <heap.h>
Data Fields | |
| uint32_t | instance |
| uint32_t | size |
| uint32_t | free_size |
| uint32_t | min_free_size |
| uint32_t | free_blocks |
| uint32_t | max_free_blocks |
| uint32_t | used_blocks |
| uint32_t | max_search |
| uint32_t | allocs |
| uint32_t | searches |
| uint32_t | frees |
| uint32_t | resizes |
the statistics is always gathered. I believe the imposed overhead is rather small. Feel free to make it compile-time option if you think the overhead is too high for your application.
| uint32_t Heap_Statistics::instance |
instance number of this heap
| uint32_t Heap_Statistics::size |
the size of the memory for heap
| uint32_t Heap_Statistics::free_size |
current free size
| uint32_t Heap_Statistics::min_free_size |
minimum free size ever
| uint32_t Heap_Statistics::free_blocks |
current number of free blocks
| uint32_t Heap_Statistics::max_free_blocks |
maximum number of free blocks ever
| uint32_t Heap_Statistics::used_blocks |
current number of used blocks
| uint32_t Heap_Statistics::max_search |
maximum number of blocks searched ever
| uint32_t Heap_Statistics::allocs |
total number of successful calls to alloc
| uint32_t Heap_Statistics::searches |
total number of searches ever
| uint32_t Heap_Statistics::frees |
total number of suceessful calls to free
| uint32_t Heap_Statistics::resizes |
total number of successful resizes
1.5.6