Documentation
¶
Overview ¶
Package pprof provides utilities for integrating Go's pprof profiling tools with an HTTP server. It registers the standard pprof endpoints under a configurable URL prefix.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Endpoints ¶
Endpoints returns a list of all pprof endpoint paths for the given prefix. This is useful for documentation or verification purposes.
func RegisterHandlers ¶
RegisterHandlers registers pprof handlers with the provided muxer under the specified URL prefix. This enables access to profiling endpoints such as /debug/pprof/, /debug/pprof/profile, and others.
Example:
pprof.RegisterHandlers("/api", srv)
Types ¶
Click to show internal directories.
Click to hide internal directories.