摘要:
1.在程序import 中增加 _ "net/http/pprof"2.程序中增加go func() { log.Println(http.ListenAndServe("localhost:6060", nil)) }()3.运行程序go run main.go4.另启动terminal,运行go tool pprof --text http://localhost:606... 阅读全文
posted @ 2020-06-23 15:16
探索无止境
阅读(1142)
评论(0)
推荐(0)