Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewInitializer), fx.Invoke(LifetimeHooks), )
Requires *config.PProf available in container.
Functions ¶
func LifetimeHooks ¶ added in v1.14.0
func LifetimeHooks( lc fx.Lifecycle, pprof *PProfInitializerImpl, )
Types ¶
type PProfInitializerImpl ¶
PProfInitializerImpl initialize the pprof based on config
func NewInitializer ¶
func NewInitializer(cfg *config.PProf, logger log.Logger) *PProfInitializerImpl
NewInitializer create a new instance of PProf Initializer
func (*PProfInitializerImpl) Start ¶
func (initializer *PProfInitializerImpl) Start() error
Start the pprof based on config
Click to show internal directories.
Click to hide internal directories.