使用方法:
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.