Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnabledFlagName = "pprof.enabled" ListenAddrFlagName = "pprof.addr" PortFlagName = "pprof.port" ProfileTypeFlagName = "pprof.type" ProfilePathFlagName = "pprof.path" )
Variables ¶
View Source
var ErrInvalidPort = errors.New("invalid pprof port")
Functions ¶
Types ¶
type CLIConfig ¶
type CLIConfig struct {
ListenEnabled bool
ListenAddr string
ListenPort int
ProfileType profileType
ProfileDir string
ProfileFilename string
}
func DefaultCLIConfig ¶
func DefaultCLIConfig() CLIConfig
func ReadCLIConfig ¶
Click to show internal directories.
Click to hide internal directories.