2023-03-09 01:16:09 +00:00
|
|
|
package hook
|
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
import _ "net/http/pprof"
|
|
|
|
|
2023-03-09 01:30:13 +00:00
|
|
|
func Prof () {
|
2023-03-09 01:16:09 +00:00
|
|
|
go func () {
|
|
|
|
err := http.ListenAndServe("localhost:9090", nil)
|
|
|
|
if err != nil { panic(err.Error()) }
|
|
|
|
} ()
|
|
|
|
}
|