god dam it

This commit is contained in:
Sasha Koshka
2023-03-08 20:30:13 -05:00
parent 4cd4374e38
commit f7ee80c8f9
2 changed files with 9 additions and 3 deletions

11
ez/hook.go Normal file
View File

@@ -0,0 +1,11 @@
package hook
import "net/http"
import _ "net/http/pprof"
func Prof () {
go func () {
err := http.ListenAndServe("localhost:9090", nil)
if err != nil { panic(err.Error()) }
} ()
}