pprof env
This commit is contained in:
parent
8395cf71b4
commit
d90682e183
3 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ func main() {
|
|||
|
||||
logging.LogSetup(c.LogLevel)
|
||||
|
||||
if c.Metrics.GinMode != "release" {
|
||||
if c.PprofEnabled {
|
||||
go func() {
|
||||
log.Println(http.ListenAndServe("localhost:6060", nil))
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue