Documentation ¶
Overview ¶
Package pprof-garbage writes runtime profiling data in the format expected by the pprof visualization tool. The profile shows estimates for garbage allocations over a given time duration:
go tool pprof http://127.0.0.1:6000/debug/pprof/garbage?debug=1
See https://github.com/golang/go/issues/16629 for more details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Garbage ¶
func Garbage(w http.ResponseWriter, r *http.Request)
Garbage returns an HTTP handler that serves the garbage profile.
func WriteGarbageProfile ¶
WriteGarbageProfile writes a pprof-formatted snapshot of the garbage profile to w. The profile runs twice as long as duration: the first half is calculating the GC period for the duration. The debug parameter enables additional output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.