diff --git a/.gitignore b/.gitignore index 286ae7f..cfea590 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,11 @@ performance_measuring.kdev4 #binaries a.out performance_measuring +performance_measuring_test + +# perf +out.folded +out.perf +perf.data +perf.data.old +flamegraph.svg diff --git a/generate_flame_graph.sh b/generate_flame_graph.sh new file mode 100755 index 0000000..913635d --- /dev/null +++ b/generate_flame_graph.sh @@ -0,0 +1,9 @@ +#/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