支持配置启动PPROF

This commit is contained in:
2021-04-19 00:03:25 +08:00
parent 844da3f325
commit d2a6f851f8
5 changed files with 41 additions and 13 deletions

View File

@ -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),
}
}