简介 golang 的 pprof 是性能分析的工具,包括交互命令行和 UI 图像化的分析。   使用 使用pprof需要导入如下包: import (     “net/http”     _ “net/http/pprof” )   代码中加入以下代码go StartMonitor() func StartMonitor() {     ip := “0.0.0.0:6060”     if err := http.ListenAndServe(ip, nil); err != nil {         logger.Debugf(“start pprof failed on %s\n”