Discover Packages
github.com/labstack/echo-contrib/v5
pprof
package
Version:
v5.0.1
Opens a new window with list of versions in this module.
Published: Feb 19, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Usage
package main
import (
"log/slog"
"github.com/labstack/echo-contrib/v5/pprof"
"github.com/labstack/echo/v5"
)
func main() {
e := echo.New()
pprof.Register(e)
//......
if err := e.Start(":1323"); err != nil {
slog.Error("failed to start server", "error", err)
}
}
Then use the pprof tool to look at the heap profile:
go tool pprof http://localhost:1323/debug/pprof/heap
Or to look at a 30-second CPU profile:
go tool pprof http://localhost:1323/debug/pprof/profile?seconds=30
Or to look at the goroutine blocking profile, after calling runtime.SetBlockProfileRate in your program:
go tool pprof http://localhost:1323/debug/pprof/block
Or to look at the holders of contended mutexes, after calling runtime.SetMutexProfileFraction in your program:
go tool pprof http://localhost:1323/debug/pprof/mutex
Expand ▾
Collapse ▴
Documentation
¶
Register middleware for net/http/pprof
Source Files
¶
Click to show internal directories.
Click to hide internal directories.