()
| 125 | } |
| 126 | |
| 127 | func debug() { |
| 128 | // Open pprof |
| 129 | if config.Get().PprofDebug.Enable { |
| 130 | utils.GoWithRecover(func() { |
| 131 | addr := strconv.Itoa(int(config.Get().PprofDebug.Port)) |
| 132 | _ = http.ListenAndServe(":"+addr, nil) |
| 133 | }, nil) |
| 134 | } |
| 135 | } |
no test coverage detected