mirror of
https://github.com/aristocratos/btop.git
synced 2026-04-17 21:50:35 -04:00
Add GPU monitoring for Apple Silicon Macs using the IOReport framework and IOHIDEventSystem for temperature readings. Metrics supported: - GPU utilization (from GPU Performance States residency) - GPU power consumption (from Energy Model channel) - GPU temperature (from IOHIDEventSystem thermal sensors) - GPU clock speed (from DVFS frequency table + residency weighting) - Memory usage (unified memory architecture, reports system RAM) Implementation follows the existing Nvml/Rsmi/Intel backend pattern with init/shutdown/collect<is_init> template functions in a new AppleSilicon namespace under Gpu. Build system changes: - Enable GPU_SUPPORT on macOS in both CMakeLists.txt and Makefile - Link IOReport library on macOS - Add 'apple' to shown_gpus vendor filter Closes #955