_ "net/http/pprof"
http.ListenAndServe(":10000", nil)
http监控:
go tool pprof -http="localhost:8081" http://localhost:10000/debug/pprof/profile
浏览器访问:
http://localhost:8081/ui/
file监控:
go tool pprof http://localhost:10000/debug/pprof/profile
(pprof):web
https://graphviz.gitlab.io/_pages/Download/Download_windows.html
文件位置:
C:\Users\Administrator\pprof\pprof.samples.cpu.001.pb.gz
调优命令:
go tool pprof C:\Users\Administrator\pprof\pprof.samples.cpu.001.pb.gz