用perf或者别的东西生成perf.data后,可以用如下方法生成火焰图:
先把https://github.com/brendangregg/FlameGraph.git clone到某个目录,然后
perf script -i perf.data > perf.unfold
/path/to/FlameGraph/stackcollapse-perf.pl perf.unfold > perf.folded
/path/to/FlameGraph/flamegraph.pl perf.folded > perf.svg