ezprof/ez/hook.go

12 lines
185 B
Go

package ez
import "net/http"
import _ "net/http/pprof"
func Prof () {
go func () {
err := http.ListenAndServe("localhost:8888", nil)
if err != nil { panic(err.Error()) }
} ()
}