Versions in this module Expand all Collapse all v0 v0.1.0 Aug 9, 2025 Changes in this version + type CPUStats struct + func NewCPUStats(idleUpdateCallback func(idle float64)) (*CPUStats, error) + func NewProcMonitor(onUpdate func(*ProcStats)) (*CPUStats, error) + func (c *CPUStats) GetCPUIdle() float64 + func (c *CPUStats) GetCPULoad() float64 + func (c *CPUStats) NumCPU() float64 + func (c *CPUStats) Stop() + type MemoryStats struct + func NewMemoryStats() (*MemoryStats, error) + func (m *MemoryStats) GetMemory() (uint64, uint64, error) + type ProcStats struct + Cpu map[int]float64 + CpuIdle float64 + Memory map[int]int + MemoryTotal int