gitee.com/gricks/utils@v1.0.8/pprof.go (about) 1 package utils 2 3 import ( 4 "fmt" 5 6 "net/http" 7 _ "net/http/pprof" 8 ) 9 10 func PProf(addr string) { 11 go func() { 12 if err := http.ListenAndServe(addr, nil); err != nil { 13 fmt.Println("Perf Start Failed|Err:", err) 14 } 15 }() 16 }