Useful Parameters Provided by mallinfo()
- arena: total space allocated from the heap (that is, how much the “break” point has moved since the start of the process).
- uordblks: number of bytes allocated and in use.
- fordblks: number of bytes allocated but not in use.
- keepcost: size of the area that can be released with a malloc_trim().
- hblks: number of chunks allocated via mmap().
- hblkhd: total number of bytes allocated via mmap().