go之性能分析工具pprof

一、介紹 net/http/pprof--->使用runtime/pprof包來進行封裝並在http端口上暴露出來 runtime/pprof 二、Demo go func() { http.ListenAndServe("0.0.0.0:8081", nil) }() 三、查看 經過命令行查看 go tool pprof http://localhost:8081/debug/pprof/
相關文章
相關標籤/搜索