程序火焰图
- git clone https://github.com/brendangregg/FlameGraph.git
- 以下命令在FlameGraph里面执行
- yum install perf -y
- perf record -F 99 -p 进程pid -g -- sleep 30
- perf report -n --stdio
- perf script -i perf.data &> perf.unfold
- ./stackcollapse-perf.pl perf.unfold &> perf.folded
- ./flamegraph.pl perf.folded > perf.svg