Skip to content

Latest commit

 

History

History
 
 

go-pprof

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

go pprof golang 自带的性能查看器

功能

  1. 查看程序运行时候的系统占用情况
  2. 一般在性能调优时候用

使用

  1. 在程序主函数加入部分代码即可 类似server.go
  2. 然后在可访问的机器调用shell命令向该服务发送http请求
  3. 浏览器查看http://localhost:6060/debug/pprof/