Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ShutdownTimeoutDefault is a default value for profiler HTTP service timeout. ShutdownTimeoutDefault = 30 * time.Second // AddressDefault is a default value for profiler HTTP service endpoint. AddressDefault = "localhost:6060" )
Variables ¶
This section is empty.
Functions ¶
func Address ¶
Address returns the value of "address" config parameter from "pprof" section.
Returns AddressDefault if the value is not set.
func BlockRate ¶ added in v0.37.0
BlockRate returns the value of "block_rate" config parameter from "pprof" section.
func Enabled ¶
Enabled returns the value of "enabled" config parameter from "pprof" section.
Returns false if the value is missing or invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.