#/bin/bash # Don't forget to : # 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 out.perf > out.folded ./FlameGraph/flamegraph.pl out.folded > flamegraph.svg