使用方法:
1、将下面的sh脚步保存为,然后FlameGraph.sh
2、chmod a+x FlameGraph.sh
3、./FlameGraph.sh perf.data
4、最后会在当前目录下生成 5个文件
python ~/Android/Sdk/platform-tools/simpleperf/report_html.py -i $1 -o $1.html
~/Android/Sdk/platform-tools/simpleperf/bin/linux/x86_64/simpleperf report -i $1 > $1_perfreport.txt
~/Android/Sdk/platform-tools/simpleperf/bin/linux/x86_64/simpleperf report -i $1 -g --full-callgraph > $1_perfreport_callgraph.txt
~/Android/Sdk/platform-tools/simpleperf/bin/linux/x86_64/simpleperf report -i $1 -n --sort dso > $1_perfreport-i-sortdso.txt
#### ------将所有的进程放到一张火焰图上的方法
#### ------ 1、下载工具 -----#####
#### ------ 方法1: 火焰图的绘制工具可以在这里下载:https://github.com/brendangregg/FlameGraph -----#####
#### ------ 方法2: git clone https://github.