malloc_instrumentation run a binary with formatted malloc/free calls with this collection of tools, you will be able to run any binary and augment its output and periods of inactivity with memory usage differentials usage like ./malloc_run.sh <command>