Skip to content

Commit

Permalink
temporary pprof routes on api
Browse files Browse the repository at this point in the history
  • Loading branch information
henrod committed Oct 25, 2017
1 parent 91b38fe commit 53a9152
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"io"
"net"
"net/http"
"net/http/pprof"

"github.com/Sirupsen/logrus"
"github.com/gorilla/mux"
Expand Down Expand Up @@ -90,6 +91,9 @@ func (a *App) getRouter() *mux.Router {
NewVersionMiddleware(),
)).Methods("GET").Name("healthcheck")

r.HandleFunc("/debug/pprof/", pprof.Index)
r.HandleFunc("/debug/pprof/profile", pprof.Profile)

r.Handle("/login", Chain(
NewLoginUrlHandler(a),
NewLoggingMiddleware(a),
Expand Down

0 comments on commit 53a9152

Please sign in to comment.