MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / newPprofMux

Function newPprofMux

sdk/cliproxy/pprof_server.go:149–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149func 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}

Callers 1

startServerMethod · 0.85

Calls 2

HandlerMethod · 0.80
HandleMethod · 0.65

Tested by

no test coverage detected