From 8981cf9eda4f7d5c1962d248129174722fa2b503 Mon Sep 17 00:00:00 2001 From: denes Date: Fri, 4 Oct 2019 14:09:51 +0200 Subject: [PATCH] Adding forgotten generate_flame_graph.sh --- .gitignore | 8 ++++++++ generate_flame_graph.sh | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100755 generate_flame_graph.sh 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