#!/bin/sh # time based sampling rm perf.data; perf record -e L1-dcache-load-misses:u -F 99 -g -- ./ypsu.out # counters only - might work or not #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