From a849b01fa81bb5d871650e16a88d6f8b240f44eb Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Tue, 30 Sep 2025 22:17:53 +0200 Subject: [PATCH] Reapply "adds cache_miss_flamegraph.sh" This reverts commit 2a507e9f54e8478a2aa0fd2116e98c2aeb5579bd. --- 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