cache-proxy/cmd/proxy/debug.go
guochao f9ff71f62a
Some checks failed
build container / build-container (push) Failing after 22s
run go test / test (push) Failing after 19s
add pprof handler
2025-03-03 00:26:29 +08:00

18 lines
268 B
Go

//go:build pprof
package main
import (
"flag"
"os"
)
func init() {
flag.BoolVar(&pprofEnabled, "pprof", true, "")
if v, ok := os.LookupEnv("SENTRY_DSN"); ok {
sentrydsn = v
}
flag.StringVar(&sentrydsn, "sentry", sentrydsn, "sentry dsn to report errors")
}