package
1.3.8
Repository: https://github.com/bmbstack/ripple.git
Documentation: pkg.go.dev

# README

echopprof

A wrapper for golang web framework echo to use net/http/pprof easily.

install

First install echopprof to your GOPATH using go get:

go get github.com/echo-contrib/echopprof

Usage

package main

import (
    "github.com/labstack/echo"

    "github.com/echo-contrib/echopprof"
)

func main() {
    e := echo.New()

    e.Get("/", func(c *echo.Context) error {
        return c.String(200, "hello")
    })

    // automatically add routers for net/http/pprof
    // e.g. /debug/pprof, /debug/pprof/heap, etc.
    echopprof.Wrapper(e)

    e.Run(":8080")
}

Start this server, and now visit http://127.0.0.1:8090/debug/pprof/ and you'll see what you want.