#/bin/bash # Don't forget to allow perf record run as user: # sudo bash -c "echo 0 > /proc/sys/kernel/perf_event_paranoid" perf record -F 20000 -g ./performance_measuring perf script > out.perf ./FlameGraph/stackcollapse-perf.pl --all out.perf > out.folded ./FlameGraph/flamegraph.pl out.folded > flamegraph.svg