Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Add pprof mutex profile
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfriedroset authored and cevian committed Apr 6, 2021
1 parent 8992b93 commit 319a669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/router.go
Expand Up @@ -82,6 +82,7 @@ func GenerateRouter(apiConf *Config, metrics *Metrics, client *pgclient.Client,
router.Get("/debug/pprof/threadcreate", pprof.Handler("threadcreate").ServeHTTP)
router.Get("/debug/pprof/block", pprof.Handler("block").ServeHTTP)
router.Get("/debug/pprof/allocs", pprof.Handler("allocs").ServeHTTP)
router.Get("/debug/pprof/mutex", pprof.Handler("mutex").ServeHTTP)

return router, nil
}
Expand Down
1 change: 1 addition & 0 deletions pkg/tests/end_to_end_tests/router_test.go
Expand Up @@ -32,6 +32,7 @@ var (
"/debug/pprof/profile?seconds=1": "GET",
"/debug/pprof/symbol": "GET",
"/debug/pprof/trace": "GET",
"/debug/pprof/mutex": "GET",
"/metrics": "GET",
}
)
Expand Down

0 comments on commit 319a669

Please sign in to comment.