pprof

package
v0.2.4-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PProfModularName = strings.ToLower("PProf")
)

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(address string) *PProf

NewPProf returns an instance of pprof

func (*PProf) Name

func (p *PProf) Name() string

Name describes pprof service name

func (*PProf) ReleaseResource added in v0.2.2

func (p *PProf) ReleaseResource(ctx context.Context, scope corercmgr.ResourceScopeSpan)

func (*PProf) ReserveResource added in v0.2.2

func (p *PProf) ReserveResource(ctx context.Context, state *corercmgr.ScopeStat) (corercmgr.ResourceScopeSpan, error)

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

Jump to

Keyboard shortcuts

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