Hilbish/pprof.go

15 lines
173 B
Go
Raw Normal View History

2024-07-19 13:48:01 +00:00
//go:build pprof
2023-12-19 01:31:04 +00:00
package main
import (
_ "net/http/pprof"
"net/http"
)
func init() {
go func() {
http.ListenAndServe("localhost:8080", nil)
}()
}