Hilbish/pprof.go

15 lines
172 B
Go
Raw Normal View History

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