go pprof golang 自带的性能查看器 功能 查看程序运行时候的系统占用情况 一般在性能调优时候用 使用 在程序主函数加入部分代码即可 类似server.go 然后在可访问的机器调用shell命令向该服务发送http请求 浏览器查看http://localhost:6060/debug/pprof/ 文档链接 https://cloud.tencent.com/developer/section/1143647