1、安装graphviz软件,安装步骤如下::(1)安装graphvizyum install 'graphviz*'(2)查看已安装graphviz包yum list 'graphviz*'2、从线上导出数据:(1)运行go tool pprof http://localhost:1601/debug/pprof/profile(2)用dot导出数据3、生成性能分析图:dot test.dot -Tpng -o test.png