Documentation ¶
Index ¶
Constants ¶
View Source
const MonitorPprof = "monitor/pprof"
Variables ¶
This section is empty.
Functions ¶
func SetPprofConfig ¶
func SetPprofConfig(conf *config.Config, pprofCfg *PprofConfig)
Types ¶
type Pprof ¶
type Pprof struct {
Config *PprofConfig
}
type PprofConfig ¶
type PprofConfig struct { HttpListen string `yaml:"http_listen"` Cpuprofile string `yaml:"cpuprofile"` Memprofile string `yaml:"memprofile"` }
func GetPprofConfig ¶
func GetPprofConfig(conf *config.Config) *PprofConfig
Click to show internal directories.
Click to hide internal directories.