pprof

package
v0.0.0-...-6877637 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 25

Documentation

Overview

Package pprof contains helpers for profiling binaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Instrument

func Instrument(opts flagutil.InstrumentationOptions)

Instrument implements the profiling options a user has asked for on the command line.

func Serve

func Serve(port int)

Serve sets up a handler for pprof debug endpoints and starts a server for them asynchronously. The contents of this function are identical to what the `net/http/pprof` package does on import for the simple case where the default mux is to be used, but with a custom mux to ensure we don't serve this data from an exposed port.

func WriteMemoryProfiles

func WriteMemoryProfiles(interval time.Duration)

WriteMemoryProfiles is a non-blocking, best-effort routine to dump memory profiles at a pre-determined interval for future parsing and analysis.

Types

This section is empty.

Jump to

Keyboard shortcuts

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