glider/pprof.go

13 lines
145 B
Go

//+build pprof
package main
import _ "net/http/pprof"
import "net/http"
func init() {
go func() {
http.ListenAndServe(":6060", nil)
}()
}