2
2
의 미러 https://github.com/Hilbis/Hilbish synced 2025-07-01 00:32:03 +00:00

feat: add pprof

This commit is contained in:
sammyette 2023-12-18 21:31:04 -04:00
부모 a0513c0a05
커밋 9d5f5abef4
로그인 계정: sammyette
GPG 키 ID: 904FC49417B44DCD

14
pprof.go Normal file
파일 보기

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