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.
$ 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