feat: use 32345 as pprof port

This commit is contained in:
fengcaiwen
2023-03-16 19:07:08 +08:00
committed by wencaiwulue
parent ac3c7c218f
commit a545f3a958
6 changed files with 11 additions and 8 deletions

View File

@@ -721,3 +721,7 @@ func Print(writer io.Writer, slogan string) {
_, _ = writer.Write([]byte(sb.String()))
}
func StartupPProf(port int) {
log.Errorln(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))
}