From 624e8b55ead7677349f6feab87de3b130e6de395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Wed, 7 Feb 2024 15:01:38 +0100 Subject: [PATCH] add script to record perf and make the flame graph --- qdp_project/record-perf.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 qdp_project/record-perf.sh diff --git a/qdp_project/record-perf.sh b/qdp_project/record-perf.sh new file mode 100644 index 0000000..f5be3a1 --- /dev/null +++ b/qdp_project/record-perf.sh @@ -0,0 +1,3 @@ +echo 0 > /proc/sys/kernel/kptr_restrict +perf record -e cycles -g --call-graph dwarf -- cmake-build-reldeb/QDPBench +perf script | /home/cfuerst/FlameGraph/stackcollapse-perf.pl | /home/cfuerst/FlameGraph/flamegraph.pl > results/perf.pl