profiler

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PprofProfiler

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

PprofProfiler implements the Profiler interface for pprof

func NewPprofProfiler

func NewPprofProfiler(cfg config.Config) (*PprofProfiler, error)

NewPprofProfiler creates a new pprof profiler

func (*PprofProfiler) IsRunning

func (pp *PprofProfiler) IsRunning() bool

IsRunning returns the current state of the profiler

func (*PprofProfiler) Name

func (pp *PprofProfiler) Name() string

Name returns the profiler's identifier

func (*PprofProfiler) Pause

func (pp *PprofProfiler) Pause(ctx context.Context) error

Pause temporarily stops profiling

func (*PprofProfiler) Resume

func (pp *PprofProfiler) Resume(ctx context.Context) error

Resume after pause

func (*PprofProfiler) Start

func (pp *PprofProfiler) Start(ctx context.Context) error

Start begins profiling

func (*PprofProfiler) Stop

func (pp *PprofProfiler) Stop(ctx context.Context) error

Stop gracefully stops profiling

type PyroscopeProfiler

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

PyroscopeProfiler implements the Profiler interface for Pyroscope

func NewPyroscopeProfiler

func NewPyroscopeProfiler(cfg config.Config) (*PyroscopeProfiler, error)

NewPyroscopeProfiler creates a new Pyroscope profiler

func (*PyroscopeProfiler) IsRunning

func (pp *PyroscopeProfiler) IsRunning() bool

IsRunning returns the current state of the profiler

func (*PyroscopeProfiler) Name

func (pp *PyroscopeProfiler) Name() string

Name returns the profiler's identifier

func (*PyroscopeProfiler) Pause

func (pp *PyroscopeProfiler) Pause(ctx context.Context) error

Pause temporarily stops profiling

func (*PyroscopeProfiler) Resume

func (pp *PyroscopeProfiler) Resume(ctx context.Context) error

Resume after pause

func (*PyroscopeProfiler) Start

func (pp *PyroscopeProfiler) Start(ctx context.Context) error

Start begins profiling

func (*PyroscopeProfiler) Stop

func (pp *PyroscopeProfiler) Stop(ctx context.Context) error

Stop gracefully stops profiling

Jump to

Keyboard shortcuts

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