ezprof/ez/hook.go
Sasha Koshka 401cba8360 OOps
2023-03-08 23:45:48 -05:00

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()) }
} ()
}