mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-11 07:23:30 -07:00
(minor) fix missing pprof handlers
This commit is contained in:
@@ -89,11 +89,11 @@ func New(addr string) *Server {
|
||||
|
||||
r := router.New()
|
||||
r.GET("/metrics", fasthttpadaptor.NewFastHTTPHandler(promhttp.Handler()))
|
||||
r.GET("/debug/pprof/", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Index))
|
||||
r.GET("/debug/pprof/cmdline", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Cmdline))
|
||||
r.GET("/debug/pprof/profile", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Profile))
|
||||
r.GET("/debug/pprof/symbol", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Symbol))
|
||||
r.GET("/debug/pprof/trace", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Trace))
|
||||
r.GET("/debug/pprof/profile", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Profile))
|
||||
r.GET("/debug/pprof/{path:*}", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Index))
|
||||
|
||||
return &Server{
|
||||
listen: addr,
|
||||
|
||||
Reference in New Issue
Block a user