Help us shape the future of Go! Take the 2026 Go Developer Survey

pprof

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pprof serves the net/http/pprof profiling endpoints.

Index

Constants

View Source
const DefaultPrefix = "/debug/pprof"

DefaultPrefix is the path the endpoints are served below when Config.Prefix is empty.

Variables

This section is empty.

Functions

func New

func New(configs ...Config) zinc.Middleware

New serves the standard pprof handlers below Config.Prefix. Protect or disable these endpoints in untrusted environments.

Types

type Config

type Config struct {
	// Prefix is the path the endpoints are served below. Empty means
	// DefaultPrefix.
	Prefix string
}

Config controls where the profiling endpoints are served.

Jump to

Keyboard shortcuts

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