pprof

package
v0.22.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultPProfReadHeaderTimeout = 5 * time.Second
	DefaultPProfWriteTimeout      = 11 * time.Second
	DefaultPProfIdleTimeout       = 120 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithIdleTimeout

func WithIdleTimeout(idleTimeout time.Duration) Option

func WithReadHeaderTimeout

func WithReadHeaderTimeout(readHeaderTimeout time.Duration) Option

func WithWriteTimeout

func WithWriteTimeout(writeTimeout time.Duration) Option

type Server

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

func New

func New(opts ...Option) *Server

func (*Server) Close

func (s *Server) Close(ctx context.Context) error

func (*Server) Run

func (s *Server) Run(ls net.Listener) error

Jump to

Keyboard shortcuts

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