Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 233 Bytes
// +build pprof
package main
import (
"net/http"
_ "net/http/pprof"
"os"
)
func init() {
bind := os.Getenv("IMGPROXY_PPROF_BIND")
if len(bind) == 0 {
bind = ":8088"
}
go func() {
http.ListenAndServe(bind, nil)
}()
}
You can’t perform that action at this time.