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 查看耗时
使用 github.com/smartystreets/goconvey/convey
表现上会好看些,通过So验证结果
go test -bench . -benchmem -cpuprofile prof.cpu 生成文件
go tool pprof example_test.go prof.cpu 查看文件
top10 看排行榜前十
list toReceiveChannel 查看耗时