We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i found that this package is no need, because has a simple way do this ! like follow
_ "net/http/pprof"
func main() { // Echo instance e := echo.New() // Routes e.POST("/", hello) e.GET("/debug/pprof/*", echo.WrapHandler(http.DefaultServeMux)) e.StartServer(&http.Server{Addr: "0.0.0.0:6060"}) }
The text was updated successfully, but these errors were encountered:
Or
pprofMux := http.NewServeMux() pprofMux.HandleFunc("/debug/pprof/", pprof.Index) pprofMux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) pprofMux.HandleFunc("/debug/pprof/profile", pprof.Profile) pprofMux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) pprofMux.HandleFunc("/debug/pprof/trace", pprof.Trace) e.GET("/debug/pprof/*", echo.WrapHandler(pprofMux))
Sorry, something went wrong.
OR
https://github.com/labstack/echo-contrib/tree/master/pprof
No branches or pull requests
i found that this package is no need, because has a simple way do this ! like follow
func main() {
// Echo instance
e := echo.New()
// Routes
e.POST("/", hello)
e.GET("/debug/pprof/*", echo.WrapHandler(http.DefaultServeMux))
e.StartServer(&http.Server{Addr: "0.0.0.0:6060"})
}
The text was updated successfully, but these errors were encountered: