这两篇文章也不错,第二篇为 centos7 下安装 firefox 依赖的gui包 golang性能分析,pprof的使用,graphviz,火焰图_raoxiaoya的博客-CSDN博客_go pprof 火焰图golang中的pprof的使用,graphviz一、关于pprof包go中有pprof包来做代码的性能监控,包括 cpu profile, mem profile, block profile,在两个地方有包:net/http/pprofruntime/pprof其实net/http/pprof中只是使用runtime/pprof包来进行封装了一下,并在http端口上暴露出来。二、使用方法1、WEB服务器如果你的go程序是用http包启动的web服务器,你想查看自己的web服务器的状态。https://blog.csdn.net/raoxiaoya/article/details/118493465