5.9.10. __Heap_Stats()

Called from __heapstats() to print statistics about the state of the heap.

Syntax

void *__Heap_Stats(__Heap_Descriptor *h, int(*print)(void *, char const *format,...), void *printparam);

Implementation

It must output its results, using the supplied printf-type print routine, by calls of the form:


print(printparam, "%d free blocks\n", nblocks);

The format of the statistics data is implementation-defined, so it can do nothing. This routine is effectively optional, because it is never called unless the user program calls __heapstats().

Copyright © 2005 ARM Limited. All rights reserved.ARM DUI 0282B
Non-Confidential