pprofgetter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CPUProfileName = "cpu"

Variables

View Source
var ErrPProfEndpointFailed = errors.New("pprof endpoint failed")

Functions

This section is empty.

Types

type Option

type Option func(getter *PProfGetter)

func WithHostURL

func WithHostURL(hostURL *url.URL) Option

type PProfGetter

type PProfGetter struct {
	// contains filtered or unexported fields
}

func NewPProfGetter

func NewPProfGetter(options ...Option) (*PProfGetter, error)

func (*PProfGetter) Get

func (p *PProfGetter) Get(ctx context.Context, profile string, seconds int, outFilePath string) error

Jump to

Keyboard shortcuts

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