1
0
mirror of https://github.com/golang/go synced 2024-10-02 14:38:33 -06:00
go/src/runtime/pprof
Austin Clements b11fff3886 runtime/pprof: document use of pprof package
Currently the pprof package gives almost no guidance for how to use it
and, despite the standard boilerplate used to create CPU and memory
profiles, this boilerplate appears nowhere in the pprof documentation.

Update the pprof package documentation to give the standard
boilerplate in a form people can copy, paste, and tweak. This
boilerplate is based on rsc's 2011 blog post on profiling Go programs
at https://blog.golang.org/profiling-go-programs, which is where I
always go when I need to copy-paste the boilerplate.

Change-Id: I74021e494ea4dcc6b56d6fb5e59829ad4bb7b0be
Reviewed-on: https://go-review.googlesource.com/25182
Reviewed-by: Rick Hudson <rlh@golang.org>
2016-07-26 22:16:55 +00:00
..
mprof_test.go runtime: call mallocgc directly from makeslice and growslice 2016-04-20 00:05:36 +00:00
pprof_test.go runtime/pprof: don't print extraneous 0 after goexit 2016-07-13 21:18:19 +00:00
pprof.go runtime/pprof: document use of pprof package 2016-07-26 22:16:55 +00:00