lab001

command
v0.0.0-...-f10d331 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 4 Imported by: 0

README

net/http/pprof

在程序里面import,_ "net/http/pprof",然后监听端口,就可以在网页里面看到问题

  1. 浏览器访问http://localhost:7777/debug/pprof可以看到信息
  2. go tool pprof访问,go tool pprof http://localhost:7777/debug/pprof/goroutine

参考资料

http://xiaorui.cc/2016/03/20/golang%E4%BD%BF%E7%94%A8pprof%E7%9B%91%E6%8E%A7%E6%80%A7%E8%83%BD%E5%8F%8Agc%E8%B0%83%E4%BC%98/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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