2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-31 18:53:22 +00:00

feat: add pprof

This commit is contained in:
sammyette 2023-12-18 21:31:04 -04:00
parent a0513c0a05
commit 9d5f5abef4
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

14
pprof.go Normal file
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)
}()
}