Documentation
¶
Index ¶
- type PprofProfiler
- func (pp *PprofProfiler) IsRunning() bool
- func (pp *PprofProfiler) Name() string
- func (pp *PprofProfiler) Pause(ctx context.Context) error
- func (pp *PprofProfiler) Resume(ctx context.Context) error
- func (pp *PprofProfiler) Start(ctx context.Context) error
- func (pp *PprofProfiler) Stop(ctx context.Context) error
- type PyroscopeProfiler
- func (pp *PyroscopeProfiler) IsRunning() bool
- func (pp *PyroscopeProfiler) Name() string
- func (pp *PyroscopeProfiler) Pause(ctx context.Context) error
- func (pp *PyroscopeProfiler) Resume(ctx context.Context) error
- func (pp *PyroscopeProfiler) Start(ctx context.Context) error
- func (pp *PyroscopeProfiler) Stop(ctx context.Context) error
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
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
Click to show internal directories.
Click to hide internal directories.