pprof

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PprofConfig

type PprofConfig struct {
	// Enabled controls whether the pprof service is enabled.
	Enabled bool `json:"enabled"`

	// ListenAddress is the address to listen on.
	ListenAddress string `json:"listenAddress"`
}

PprofConfig is the configuration for the pprof service.

func (*PprofConfig) NewService

func (pc *PprofConfig) NewService(logger *zap.Logger) *Service

NewService creates a new pprof service.

type Service

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

Service implements [service.Service].

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

Start implements [service.Service.Start].

func (*Service) Stop

func (s *Service) Stop() error

Stop implements [service.Service.Stop].

func (*Service) String

func (s *Service) String() string

String implements [service.Service.String].

Jump to

Keyboard shortcuts

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