05 2021 档案
摘要:在发生goroutine泄漏/内存泄漏时,经常需要查看代码中哪一部分goroutine数量过多,可采用以下方法 引入pprof包 import _ "net/http/pprof" 开启http监听服务 func main() { go func() { log.Println(http.Liste
阅读全文
摘要:go test命令(Go语言测试命令)完全攻略 http://c.biancheng.net/view/124.html go benchmark 性能测试 https://www.cnblogs.com/bergus/articles/go-benchmark-xing-neng-ce-shi.h
阅读全文

浙公网安备 33010602011771号