Documentation ¶
Overview ¶
Package pprof contains helpers for profiling binaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Instrument ¶
func Instrument(opts flagutil.InstrumentationOptions)
Instrument implements the profiling options a user has asked for on the command line.
func Serve ¶
func Serve(port int)
Serve sets up a handler for pprof debug endpoints and starts a server for them asynchronously. The contents of this function are identical to what the `net/http/pprof` package does on import for the simple case where the default mux is to be used, but with a custom mux to ensure we don't serve this data from an exposed port.
func WriteMemoryProfiles ¶
WriteMemoryProfiles is a non-blocking, best-effort routine to dump memory profiles at a pre-determined interval for future parsing and analysis.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.