From 78266ef34577eaf88ff5507e4a10e3ba2459bfe8 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Tue, 30 Sep 2025 17:22:19 +0200 Subject: [PATCH] adds cache_miss_flamegraph.sh --- cache_miss_flamegraph.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 cache_miss_flamegraph.sh diff --git a/cache_miss_flamegraph.sh b/cache_miss_flamegraph.sh new file mode 100755 index 0000000..ce49587 --- /dev/null +++ b/cache_miss_flamegraph.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +rm perf.data; perf record -e L1-dcache-load-misses:u -c 1000 -g -- ./ypsu.out +perf script | FlameGraph/stackcollapse-perf.pl > out.perf-folded +FlameGraph/flamegraph.pl out.perf-folded > perf.svg +brave perf.svg