package
Version:
v2.0.2
Opens a new window with list of versions in this module.
Published: Mar 23, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ProvideProfilingProvider creates a pprof-based profiling provider that exposes
/debug/pprof endpoints on an HTTP server.
type Config struct {
Port uint16 `env:"PORT" json:"port"`
EnableMutexProfile bool `env:"ENABLE_MUTEX_PROFILE" json:"enableMutexProfile"`
EnableBlockProfile bool `env:"ENABLE_BLOCK_PROFILE" json:"enableBlockProfile"`
}
Config holds pprof-specific profiling configuration.
ValidateWithContext validates the config struct.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.