pprof

package
v0.2.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PProf

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

PProf is used to analyse the performance sp service

func NewPProf

func NewPProf(cfg *PProfConfig) *PProf

NewPProf returns an instance of pprof

func (*PProf) Name

func (p *PProf) Name() string

Name describes pprof service name

func (*PProf) Start

func (p *PProf) Start(ctx context.Context) error

Start HTTP server

func (*PProf) Stop

func (p *PProf) Stop(ctx context.Context) error

Stop HTTP server

type PProfConfig

type PProfConfig struct {
	Enabled     bool   `toml:",omitempty"`
	HTTPAddress string `toml:",omitempty"`
}

PProfConfig contains the configuration for pprof.

Jump to

Keyboard shortcuts

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