This library captures all malloc calls and prints the total number of bytes being allocated by calls to malloc throughout the lifetime of the program being tracked
If the library file (mal.so) is not included, run gcc -shared -fPIC -o mal.so mal.c to generate the library file.
To track any file, run LD_PRELOAD={absolute path to mal.so} {program to track}