profile

package
v1.31.3-0...-b1489ee Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultProfiler = &Config{
	Router: func(context.Context, *config.Node) (*mux.Router, error) {
		return nil, errors.New("not implemented")
	},
}

DefaultProfiler the default instance of a performance profiling server

Functions

This section is empty.

Types

type Config

type Config struct {
	// Router will be called to add the pprof API handler to an existing router.
	Router https.RouterFunc
}

Config holds fields for the pprof listener

func (*Config) Start

func (c *Config) Start(ctx context.Context, nodeConfig *config.Node) error

Start starts binds the pprof API to an existing HTTP router.

Jump to

Keyboard shortcuts

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