Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New("eBPF monitoring is only supported on Linux kernels >= 4.18")
ErrUnsupported is returned when the current platform cannot host eBPF programs
Functions ¶
This section is empty.
Types ¶
type HotPathSink ¶
HotPathSink consumes adaptive profiler hints to refine kernel filters
type LifecycleEvent ¶
type LifecycleEvent struct {
Runtime string
Namespace string
ContainerID string
PID uint32
State string
Timestamp time.Time
}
LifecycleEvent represents a container lifecycle transition (create/start/stop)
type Manager ¶
type Manager interface {
Start(ctx context.Context) error
Close() error
Events() <-chan Event
LifecycleEvents() <-chan LifecycleEvent
ApplyHotPathHints(map[string]float64) error
}
Manager exposes kernel-level monitoring primitives regardless of platform
func NewManager ¶
func NewManager(_ string, _ *config.EBPFConfig) (Manager, error)
NewManager reports unsupported platforms when Linux eBPF is unavailable.
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
Profiler performs lightweight EMA calculations to predict frequently modified paths
func NewProfiler ¶
func NewProfiler(cfg *config.EBPFConfig, sink HotPathSink) *Profiler
NewProfiler builds a profiler using EBPFConfig settings
func (*Profiler) Flush ¶
func (p *Profiler) Flush()
Flush forces an immediate EMA update (used for tests and manual tuning)
Click to show internal directories.
Click to hide internal directories.