Browse Source

pprof debug

pull/432/merge
Darien Raymond 8 years ago
parent
commit
d809973621
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 10
      main/distro/debug/debug.go

10
main/distro/debug/debug.go

@ -0,0 +1,10 @@
package debug
import _ "net/http/pprof"
import "net/http"
func init() {
go func() {
http.ListenAndServe("localhost:6060", nil)
}()
}
Loading…
Cancel
Save