feat: add pprof

pull/276/merge
sammyette 2023-12-18 21:31:04 -04:00
parent a0513c0a05
commit 9d5f5abef4
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 14 additions and 0 deletions

14
pprof.go 100644
View File

@ -0,0 +1,14 @@
// +build pprof
package main
import (
_ "net/http/pprof"
"net/http"
)
func init() {
go func() {
http.ListenAndServe("localhost:8080", nil)
}()
}