随笔分类 - golang相关学习
摘要:1.自定义域名 sudo vi /etc/hosts 增加自定义域名 zhengzhihua.mac 保存退出 测试域名 2.生成证书脚本 创建文件build_crt.sh #!/bin/bash set -x $(openssl genrsa -out rootCA.key 4096) $(ope
阅读全文
摘要:使用 github.com/smartystreets/goconvey/convey 表现上会好看些,通过So验证结果 go test -bench . -benchmem -cpuprofile prof.cpu 生成文件 go tool pprof example_test.go prof.c
阅读全文
摘要:go tool pprof main profilemain 代表的是二进制文件,也就是编译出来的可执行文件profile 就是上文中生成的profile,可以是cpu_profile, 也可以是mem_profile 对于cpu_profile 来说,代码开始的时候就可以开始统计了mem_prof
阅读全文
摘要:学习链接 http://raylei.cn/index.php/archives/48/
阅读全文