Home Flame graph - A visualization for profiling and debugging
Post
Cancel

Flame graph - A visualization for profiling and debugging

Flame graphs can be generated from the output of many different software profilers, including profiles for different resources and event types. The article written by Brendan Gregg describes how the flame graph works.

We can start to work with the flame graph by following commands.

1
2
3
4
5
6
7
$ yum install git
$ git clone --depth 1 https://github.com/brendangregg/FlameGraph
$ cp result-15082021-201302/perf.data FlameGraph/
$ cd FlameGraph/
 
$ perf record -p $pids -a -g -- sleep 30
$ perf script | ./stackcollapse-perf.pl | ./flamegraph.pl > perf16.svg

Image

Reference

This post is licensed under CC BY 4.0 by the author.

Deploy kubernetes statefulset with affinity

journalctl - Query the systemd journal

Comments powered by Disqus.