火焰图类型
CPU
Memory
Off-CPU
Hot/Cold
Differential
快速上手火焰图
linux+java+cpu
第一步:到如下地址下载适合自己系统的async-profiler工具
https://github.com/jvm-profiling-tools/async-profiler

第二步:上传并解压
tar -zxvf async-profiler-2.0-linux-x64.tar.gz
第三步:生成火焰图
./profiler.sh -d 60 -f ./flamegraph.html xx
其中60是采样时间,xx是pid,flamegraph.html是生成的火焰图文件
第四步:用浏览器打开
参考:
https://www.brendangregg.com/flamegraphs.html
https://github.com/brendangregg/FlameGraph
https://baijiahao.baidu.com/s?id=1652994979504972142&wfr=spider&for=pc