Skip to content

Instantly share code, notes, and snippets.

@niedbalski
Created October 22, 2024 09:49
Show Gist options
  • Save niedbalski/1fe8910504f7850adacfa0650844666c to your computer and use it in GitHub Desktop.
Save niedbalski/1fe8910504f7850adacfa0650844666c to your computer and use it in GitHub Desktop.
fluent-bit-flamegraph.sh
sudo perf record -F 99 -p $(pgrep fluent-bit) -g -- sleep 60
sudo perf script > out.perf
git clone https://github.com/brendangregg/FlameGraph.git
cd FlameGraph
./stackcollapse-perf.pl out.perf > out.folded
./flamegraph.pl out.folded > flamegraph.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment