mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Attach goroutine blocking profiler
/debug/pprof/block is 404 currently Signed-off-by: Huayi Zhang <irachex@gmail.com>
This commit is contained in:
parent
653be15f17
commit
51172493ab
1 changed files with 1 additions and 0 deletions
|
@ -1259,6 +1259,7 @@ func AttachProfiler(router *mux.Router) {
|
|||
router.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
|
||||
router.HandleFunc("/debug/pprof/profile", pprof.Profile)
|
||||
router.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
||||
router.HandleFunc("/debug/pprof/block", pprof.Handler("block").ServeHTTP)
|
||||
router.HandleFunc("/debug/pprof/heap", pprof.Handler("heap").ServeHTTP)
|
||||
router.HandleFunc("/debug/pprof/goroutine", pprof.Handler("goroutine").ServeHTTP)
|
||||
router.HandleFunc("/debug/pprof/threadcreate", pprof.Handler("threadcreate").ServeHTTP)
|
||||
|
|
Loading…
Add table
Reference in a new issue