pprof

package
v2.679.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pprof provides Fx wiring to expose net/http/pprof profiling endpoints.

This package integrates pprof handlers into the debug HTTP server setup so you can capture CPU, heap, goroutine, mutex, and block profiles for diagnostics.

It is registered by the root debug package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name env.Name, mux *http.ServeMux)

Register installs net/http/pprof handlers on mux.

Handlers are registered under the "/debug/pprof" prefix (namespaced by service name via http.Pattern), providing standard pprof endpoints such as:

  • index and profile listing
  • cmdline
  • CPU profile
  • symbol lookup
  • trace

This registration is intended to be composed into the go-service debug server wiring.

Types

This section is empty.

Jump to

Keyboard shortcuts

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