pprof

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: MPL-2.0 Imports: 3 Imported by: 1

README

PPROF

Middleware to show profiling data using standard pprof.

Usage

Import

import "github.com/ngamux/middleware/pprof"

Instance Creation

pprofMiddleware := pprof.New()

Mount Instance to Ngamux

Global Middleware
mux := ngamux.New()
mux.Use(pprofMiddleware)
Test

Now send request to /debug/pprof path, it will shows profiling interface (web page).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() func(http.HandlerFunc) http.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL