Created
October 22, 2024 09:49
-
-
Save niedbalski/1fe8910504f7850adacfa0650844666c to your computer and use it in GitHub Desktop.
fluent-bit-flamegraph.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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