malloc_count provides a set of source code tools that measure the amount of memory allocated to a program at run-time. The code library provides facilities to measure the current and peak heap memory allocation, and write a memory profile for plotting. Furthermore, separate stack_count functions can measure stack usage. The code tool works by intercepting the standard malloc(), free(), etc. functions. Thus no changes are necessary to the inspected source code.
|Tags||malloc Memory Management memory measurement|