Documentation ¶
Index ¶
Constants ¶
View Source
const ExternalConfigName = "profiling"
ExternalConfigName is the external config name of profiling.
Variables ¶
This section is empty.
Functions ¶
func Contention ¶
func Contention(enable bool) nirvana.Configurer
Contention returns a configurer to enable or disable contention profiling. Defaults to false.
func Path ¶
func Path(path string) nirvana.Configurer
Path returns a configurer to set metrics path. Default path is /debug/pprof. Then these path is used:
/debug/pprof/profile /debug/pprof/symbol /debug/pprof/trace
Types ¶
type Option ¶
type Option struct { // Contention enables contention profiling. Contention bool `desc:"Enable contention profiling"` // Path is profiling path. Path string `desc:"Profiling path"` }
Option contains basic configurations of profiling.
Click to show internal directories.
Click to hide internal directories.