Heap_Statistics Struct Reference
[Heap Handler]

#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


Detailed Description

Run-time heap statistics.

Note:
(double)searches/allocs gives mean number of searches per alloc while max_search gives maximum number of searches ever performed on a single call to alloc.

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.


Field Documentation

instance number of this heap

the size of the memory for heap

current free size

minimum free size ever

current number of free blocks

maximum number of free blocks ever

current number of used blocks

maximum number of blocks searched ever

total number of successful calls to alloc

total number of searches ever

total number of suceessful calls to free

total number of successful resizes


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

Generated on Sat Jul 5 12:16:36 2008 for RTEMSSuperCore by  doxygen 1.5.6