pprof

package
v0.0.0-...-f33d96e Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(
	NewPprofServer,
)

ProviderSet is a Wire provider set for pprof

Functions

This section is empty.

Types

type PprofConfig

type PprofConfig struct {
	Host   string
	Port   int
	Enable bool
	Path   string
}

PprofConfig holds pprof server configuration

func (*PprofConfig) SetDefaults

func (p *PprofConfig) SetDefaults()

SetDefaults sets default values for PprofConfig

type Server

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

Server represents a pprof server

func NewPprofServer

func NewPprofServer(config PprofConfig) *Server

NewPprofServer creates a new pprof server from config

func NewServer

func NewServer(config PprofConfig) *Server

NewServer creates a new pprof server

func (*Server) Start

func (s *Server) Start() error

Start starts the pprof HTTP server

func (*Server) Stop

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

Stop stops the pprof HTTP server

Jump to

Keyboard shortcuts

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