Getting Memory Amounts

To get a report of how much memory each subsystem has allocated, you can call:

size_t Aget_mem_used(int subsys);

subsys must be a value from 0 – 5. The function returns the amount of memory allocated for that subsystem. The subsystem is the same as the subsys passed to Amalloc().