set the AS_VERBOSE
environment variable to 1
to print every allocation call.
Run directly
nix run github:Sigmapitech/alloc_stats -- ls
Clone the repository
git clone Sigmapitech/alloc_stats
cd alloc_stats
Build the library
make
Run by using preloading
LD_PRELOAD=liballoc_stats.so ls