- 博客(2)
- 收藏
- 关注
原创 初探CGO之go中使用c++库
建立测试目录 $ mkdir CGO $ ls makefile print.cpp print.h use_lib.go $ cat makefile print.a: g++ -c print.cpp -o print.o ar r libprint.a print.o print.so: g++ -fPIC -c print.cpp -o print.o ...
2018-09-05 16:01:45
1739
原创 golang服务CPU占用高
在这里使用火焰图分析耗时的操作导致CPU高 代码中添加如下内容 import _ "net/http/pprof" go func() { http.ListenAndServe("0.0.0.0:8080", nil) }() 使用docker很方便得到火焰图 docker run uber/go-torch -u http://localhost:8080 -p &gt...
2018-08-22 14:37:35
4092
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅