pprof

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

pprof/pprof.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(r chi.Router)

Mount attaches the standard Go pprof handlers under /debug/pprof. It must be mounted inside the router where API-key or other auth middleware has ALREADY been applied if protection is desired.

Example:

r.Group(func(r chi.Router) {
    r.Use(apikey.RequireAdminKey(...))
    pprof.Mount(r)
})

Types

This section is empty.

Jump to

Keyboard shortcuts

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