()
| 147 | } |
| 148 | |
| 149 | func newPprofMux() *http.ServeMux { |
| 150 | mux := http.NewServeMux() |
| 151 | mux.HandleFunc("/debug/pprof/", pprof.Index) |
| 152 | mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) |
| 153 | mux.HandleFunc("/debug/pprof/profile", pprof.Profile) |
| 154 | mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) |
| 155 | mux.HandleFunc("/debug/pprof/trace", pprof.Trace) |
| 156 | mux.Handle("/debug/pprof/allocs", pprof.Handler("allocs")) |
| 157 | mux.Handle("/debug/pprof/block", pprof.Handler("block")) |
| 158 | mux.Handle("/debug/pprof/goroutine", pprof.Handler("goroutine")) |
| 159 | mux.Handle("/debug/pprof/heap", pprof.Handler("heap")) |
| 160 | mux.Handle("/debug/pprof/mutex", pprof.Handler("mutex")) |
| 161 | mux.Handle("/debug/pprof/threadcreate", pprof.Handler("threadcreate")) |
| 162 | return mux |
| 163 | } |
no test coverage detected