http://127.0.0.1:8090/debug/pprof/
go tool pprof http://localhost:8080/debug/pprof/profile?seconds=30 默认采集需要30秒
go tool pprof http://localhost:8080/debug/pprof/heap
-inuse_space:分析应用程序的常驻内存占用情况
-alloc_objects:分析应用程序的内存临时分配情况
go tool pprof http://localhost:8080/debug/pprof/block
go tool pprof http://localhost:8080/debug/pprof/mutex
pprof.alloc_objects.alloc_space.inuse_objects.inuse_space.001.pb.gzgo tool pprof
go tool pprof -http=:8000 http://localhost:8080/debug/pprof/heap 查看内存使用
go tool pprof -http=:8000 http://localhost:8080/debug/pprof/profile 查看cpu占用
go tool pprof -http=:8000 pprof.alloc_objects.alloc_space.inuse_objects.inuse_space.001.pb.gz 对本地生成文件的解析查看
Graphvizyum install graphviz
http://localhost:8000/ui