golang 调试进阶

使用 github.com/smartystreets/goconvey/convey

 

 表现上会好看些,通过So验证结果

 go test -bench . -benchmem -cpuprofile prof.cpu 生成文件

go tool pprof example_test.go  prof.cpu 查看文件

top10 看排行榜前十

 

 list toReceiveChannel 查看耗时

 

posted @ 2022-04-25 16:24  肥嘟嘟肉呼呼  阅读(34)  评论(0)    收藏  举报