Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DisableEnvVarKey is the environment variable name to disable the pprof server. // If this environment variable is set to any value, the pprof server will not be started. DisableEnvVarKey = "DISABLE_PPROF" )
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run the pprof server if the DISABLE_PPROF environment variable is not set. This is non-blocking and will run the pprof server in a separate goroutine until the provided context is cancelled.
Enabling the pprof server by default helps with debugging performance issues in production. The impact should be negligible when the actual pprof endpoints are not being accessed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.