1 Star 0 Fork 11

guoyuzh / phalgo

forked from 喵了个咪 / phalgo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pprof.go 348 Bytes
一键复制 编辑 原始数据 按行查看 历史
package phalgo
// PhalGo-pprof
// 快捷的pprof性能分析
// 喵了个咪 <wenzhenxi@vip.qq.com> 2016/5/11
// 依赖情况:
// "net/http/pprof"
import (
_ "net/http/pprof"
"log"
"net/http"
)
// 开启PProf性能分析
func OpenPProf(port string) {
go func() {
log.Println(http.ListenAndServe("localhost:" + port, nil))
}()
}
1
https://gitee.com/guoyuzh/phalgo.git
git@gitee.com:guoyuzh/phalgo.git
guoyuzh
phalgo
phalgo
master

搜索帮助