Inspired by maxmem2.sh
and maxmem-pipe2.py
scripts from https://gcc.gnu.org/wiki/PerformanceTesting
$ strace -e brk,mremap,munmap,mmap,mmap2 -f -tt -k -o "|./allocgrind.py" yourapp
$ /path/to/FlameGraph/flamegraph.pl out.stacks > out.svg
Inspired by maxmem2.sh
and maxmem-pipe2.py
scripts from https://gcc.gnu.org/wiki/PerformanceTesting
$ strace -e brk,mremap,munmap,mmap,mmap2 -f -tt -k -o "|./allocgrind.py" yourapp
$ /path/to/FlameGraph/flamegraph.pl out.stacks > out.svg