go-tool

module
v0.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: Apache-2.0

README

go-tool

📖 简介

Go Reference

Go Reference

工程规范

https://github.com/golang-standards/project-layout/blob/master/README_zh.md

编码规范

https://github.com/golang/go/wiki/CodeReviewComments

🚀 功能

debug
curl -v 'http://127.0.0.1:6060/debug/pprof/profile?seconds=30' > profile.tar.gz
curl -v 'http://127.0.0.1:6060/debug/pprof/heap?seconds=30' > head.tar.gz
curl -v 'http://127.0.0.1:6060/debug/pprof/goroutine?seconds=30' > goroutine.tar.gz

yum install -y graph
go tool pprof -http 0.0.0.0:9999 profile.tar.gz
go tool pprof -http 0.0.0.0:9999 head.tar.gz
go tool pprof -http 0.0.0.0:9999 goroutine.tar.gz

go tool pprof -http 0.0.0.0:9999 'http://127.0.0.1:6060/debug/pprof/profile?seconds=30'
go tool pprof -http 0.0.0.0:9999 'http://127.0.0.1:6060/debug/pprof/heap?seconds=30'
go tool pprof -http 0.0.0.0:9999 'http://127.0.0.1:6060/debug/pprof/goroutine?seconds=30'

💡 流程

🧰 安装

⚙️ 设置

🧲 效果

📚 链接

Directories

Path Synopsis
Package main 应用程序
Package main 应用程序
pkg
json
Package json
Package json
lockfree/linkedlist
Package linkedlist 使用链表实现
Package linkedlist 使用链表实现
log
net

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL