Documentation ¶
Index ¶
Constants ¶
View Source
const ExternalConfigName = "profiling"
ExternalConfigName is the external config name of profiling.
Variables ¶
This section is empty.
Functions ¶
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 { // Path is profiling path. Path string `desc:"Profiling path"` }
Option contains basic configurations of profiling.
func NewDefaultOption ¶ added in v0.2.0
func NewDefaultOption() *Option
NewDefaultOption creates default option.
Click to show internal directories.
Click to hide internal directories.