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 PprofTagger
- 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
- type PyroscopeTagger
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 PprofTagger ¶ added in v1.3.0
type PprofTagger struct{}
PprofTagger implements the Tagger interface for pprof backend Note: pprof doesn't support runtime tagging like Pyroscope, so this is a no-op implementation
func NewPprofTagger ¶ added in v1.3.0
func NewPprofTagger() *PprofTagger
NewPprofTagger creates a new pprof tagger
func (*PprofTagger) AddTag ¶ added in v1.3.0
func (pt *PprofTagger) AddTag(key, value string) error
AddTag is a no-op for pprof as it doesn't support runtime tagging
func (*PprofTagger) TagWrapper ¶ added in v1.3.0
func (pt *PprofTagger) TagWrapper(ctx context.Context, key, value string, fn func(context.Context) error) error
TagWrapper executes the function without adding tags (pprof limitation) For pprof, we just execute the function and return its error
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
type PyroscopeTagger ¶ added in v1.3.0
type PyroscopeTagger struct{}
PyroscopeTagger implements the Tagger interface for Pyroscope backend
func NewPyroscopeTagger ¶ added in v1.3.0
func NewPyroscopeTagger() *PyroscopeTagger
NewPyroscopeTagger creates a new Pyroscope tagger
func (*PyroscopeTagger) AddTag ¶ added in v1.3.0
func (pt *PyroscopeTagger) AddTag(key, value string) error
AddTag adds a key-value pair tag to the current Pyroscope profiling context
func (*PyroscopeTagger) TagWrapper ¶ added in v1.3.0
func (pt *PyroscopeTagger) TagWrapper(ctx context.Context, key, value string, fn func(context.Context) error) error
TagWrapper executes a function with additional Pyroscope profiling tags The tags are only applied during the execution of the function