pprof

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 7 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 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 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