//go:build !linux package system import ( "context" "time" ) // CPUCollector is a no-op on non-Linux platforms. type CPUCollector struct{} // NewCPUCollector creates a no-op CPU collector on non-Linux platforms. func NewCPUCollector(_ time.Duration) *CPUCollector { return &CPUCollector{} } // Start is a no-op on non-Linux platforms. func (c *CPUCollector) Start(_ context.Context) {} // Stop is a no-op on non-Linux platforms. func (c *CPUCollector) Stop() {} // CPUPercent always returns 0 on non-Linux platforms. func (c *CPUCollector) CPUPercent() float64 { return 0 }