Platform Package reference: Function EwGetHeapInfo()
Description of the function EwGetHeapInfo() available in all Platform Packages for ANSI C compatible target systems. This function is intended to be used when integrating the Embedded Wizard created GUI application with the underlying graphics subsystem, graphics hardware or other external GUI applications coexisting on the same system.
unsigned long* aSmallAllocCounter,
unsigned long* aLargeAllocCounter,
unsigned long* aFreeCounter
Receives the number of managed memory pools. Memory pools are added to the heap by using the function EwAddHeapMemoryPool().
Receives the size in bytes of the entire memory (used and free).
Receives the size in bytes of the free memory.
Receives the number of allocated memory blocks.
Receives the number of free blocks.
Receives the size in bytes of the smallest free block.
Receives the size in bytes of the largest free block.
Receives the total number of performed alloc operations with small blocks.
Receives the total number of performed alloc operations with large blocks.
Receives the total number of performed free operations.
The function EwGetHeapInfo() returns few information reflecting the actual state of the heap manager. As such it is useful for debugging purpose and tests. The functions copies the values into variables referred by the function parameters. If a parameter is NULL, the value is ignored.