pprof

package
v0.0.0-...-ab71962 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPUProfile

func CPUProfile(ctx context.Context, sec int) ([]byte, map[string]string, error)

CPUProfile generates a CPU Profile for a given duration

func CPUProfileWithChannel

func CPUProfileWithChannel(done chan bool) ([]byte, map[string]string, error)

CPUProfile generates a CPU Profile for a given duration

func Profile

func Profile(profile string, debug, gc int) ([]byte, map[string]string, error)

Profile generates a pprof.Profile report for the given profile name.

func SetMemProfileRate

func SetMemProfileRate(rate int)

func SetSetBlockProfileRate

func SetSetBlockProfileRate(rate int)

func StartPProf

func StartPProf(address string)

func Trace

func Trace(ctx context.Context, sec int) ([]byte, map[string]string, error)

Trace runs a trace profile for a given duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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