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

pprofserver

package
v0.1.0-rc.10 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pprofserver serves Go's runtime profiles on a listener of their own. A profile is how a memory or goroutine figure that stays high after a load leaves is attributed to the code holding it; the metrics say that it is held, not by what. The listener is unauthenticated and a CPU profile occupies the process for its duration, so it is off unless an operator names an address, and that address should be loopback or a cluster-internal one reached through a port-forward.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler serves the pprof index and every profile under /debug/pprof/ on a mux of its own. Importing net/http/pprof also registers them on http.DefaultServeMux; no mesh component serves that mux.

func Serve

func Serve(addr string) (*http.Server, error)

Serve listens on addr and serves Handler until the returned server is shut down.

Types

This section is empty.

Jump to

Keyboard shortcuts

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