mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(diagnostics): profiling config flags (#1637)
This commit is contained in:
parent
b681846b51
commit
34d6e0cf60
3 changed files with 8 additions and 8 deletions
|
@ -16,11 +16,11 @@ func SetupProfiling(enabled bool, host string, port int) {
|
|||
if enabled {
|
||||
go func() {
|
||||
// pprof has an init method which adds the following endpoints
|
||||
// http.HandleFunc(prefix+"/debug/pprof/", Index)
|
||||
// http.HandleFunc(prefix+"/debug/pprof/cmdline", Cmdline)
|
||||
// http.HandleFunc(prefix+"/debug/pprof/profile", Profile)
|
||||
// http.HandleFunc(prefix+"/debug/pprof/symbol", Symbol)
|
||||
// http.HandleFunc(prefix+"/debug/pprof/trace", Trace)
|
||||
// GET /debug/pprof/
|
||||
// GET /debug/pprof/cmdline
|
||||
// GET /debug/pprof/profile
|
||||
// GET /debug/pprof/symbol
|
||||
// GET /debug/pprof/trace
|
||||
err := http.ListenAndServe(fmt.Sprintf("%s:%d", host, port), nil)
|
||||
if err != nil {
|
||||
log.Printf("Error starting profiling server: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue