Versions in this module Expand all Collapse all v0 v0.0.2 Dec 29, 2024 v0.0.1 Dec 28, 2024 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) NumCPU() float64 + func (c *CPUStats) Stop() + type ProcStats struct + Cpu map[int]float64 + CpuIdle float64 + Memory map[int]int + MemoryTotal int