支持配置启动PPROF
This commit is contained in:
@ -65,6 +65,7 @@ func (e Example) GetServerPort() int {
|
||||
func (e Example) GetWSServerConfig() []config.SetWSServerConfig {
|
||||
return []config.SetWSServerConfig{
|
||||
config.SetWSServerLogEnable("./logs", e.GetModuleFlag()+".log", zapcore.DebugLevel, logger.TimeIntervalTypeHour),
|
||||
config.EnablePprof(10100),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user