package pprof_test /* 查看堆栈调用信息 go tool pprof http://122.51.39.132:9090/debug/pprof/heap 查看 30 秒内的 CPU 信息 go tool pprof http://122.51.39.132:9090/debug/pprof/profile -seconds 10 go tool pprof http://122.51.39.132:9090/debug/pprof/profile?seconds=30 查看 goroutine 阻塞 go tool pprof http://122.51.39.132:9090/debug/pprof/block 收集 5 秒内的执行路径 go tool pprof http://122.51.39.132:9090/debug/pprof/trace?seconds=5 争用互斥持有者的堆栈跟踪 go tool pprof http://122.51.39.132:9090/debug/pprof/mutex go tool pprof -http=:7778 http://122.51.39.132:9090/debug/pprof/heap */ /* UI web 界面 curl -sK -v http://122.51.39.132:9090/debug/pprof/heap > heap.out go tool pprof -http=:8080 heap.out */