Versions in this module Expand all Collapse all v0 v0.0.1 Jan 13, 2026 Changes in this version + func GetBootTime() (time.Time, error) + func GetProcessStartTime(pid int) (time.Time, error) + func ReadAllStats(pids []int, tracker *CPUTracker) (map[int]*Stats, error) + type CPUTracker struct + func NewCPUTracker() *CPUTracker + func (t *CPUTracker) CleanupStale(activePIDs []int) + type Stats struct + CPUPercent float64 + MemoryMB int64 + MemoryRSS int64 + PID int + StartTime int64 + State string + Threads int + VirtualMB int64 + func ReadStats(pid int, tracker *CPUTracker) (*Stats, error)