Skip to content

Commit

Permalink
Remove profiling endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Jan 30, 2020
1 parent a588839 commit 5a4d06f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions api/routes.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package api

import (
"net/http/pprof"

"github.com/lbryio/lbrytv/app/player"
"github.com/lbryio/lbrytv/app/proxy"
"github.com/lbryio/lbrytv/app/publish"
Expand All @@ -28,12 +26,4 @@ func InstallRoutes(proxyService *proxy.ProxyService, r *mux.Router) {
v1Router.HandleFunc("/proxy", proxyHandler.Handle)

player.InstallRoutes(r)

debugRouter := r.PathPrefix("/superdebug/pprof").Subrouter()
debugRouter.HandleFunc("/", pprof.Index)
debugRouter.HandleFunc("/cmdline", pprof.Cmdline)
debugRouter.HandleFunc("/profile", pprof.Profile)
debugRouter.HandleFunc("/symbol", pprof.Symbol)
debugRouter.HandleFunc("/trace", pprof.Trace)
debugRouter.Handle("/heap", pprof.Handler("heap"))
}

0 comments on commit 5a4d06f

Please sign in to comment.