Skip to content

Commit

Permalink
Fix strange high sample counts in flame graph
Browse files Browse the repository at this point in the history
Seems to have be because of this bug:
brendangregg/FlameGraph#165. One workaround
there was to record data with `-e cpu-clock`. I don't know what that
means but that is what this commit does.
  • Loading branch information
jacobvosmaer committed Feb 13, 2024
1 parent 99b5563 commit 6c8ba17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recordflame.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set -e
freq=99
sleep=30

perf record -o perf.data -a -g -F $freq -- sleep $sleep
perf record -o perf.data -a -g -F $freq -e cpu-clock -- sleep $sleep
perf script -i perf.data | ./stackcollapse-perf.pl | ./flamegraph.pl --title "$1,freq=$freq,sleep=$sleep" --hash

0 comments on commit 6c8ba17

Please sign in to comment.