You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: windows cpu power via LibreHardwareMonitor, explain the apple/detail dashes
Windows has no user-space RAPL — reading CPU energy MSRs needs a ring-0 driver
we don't ship (that's what Scaphandre/WinPowerMonitor install). So instead of
signing our own driver, read CPU power from LibreHardwareMonitor if it's running:
query its WMI provider for the CPU-package power sensor and report power.cpu
(Intel + AMD, no cgo). Absent, power.cpu says to run LHM.
Also stop the silent CPU blank on Apple Pro/Max: IOReport and powermetrics both
report 0 for the CPU/ANE channels there (verified on an M3 Max — powermetrics
prints "CPU Power: 0 mW" with the clusters pegged), so power.cpu now reads
"Pro/Max: no per-domain CPU power" and power.total still carries the SMC total.
The host detail view renders the unavailable reason next to the dash now, clamped
to width so a long reason can't wrap and break the panel.
out=append(out, domain.Metric{Name: "power.cpu", Status: domain.StatusUnavailable, Detail: "no RAPL on Windows — run LibreHardwareMonitor for CPU power"})
0 commit comments