SurfSense/surfsense_local/backend/modules/resource_usage
DESKTOP-RTLN3BA\$punk 54e83a0857 feat(local): show live CPU, RAM and GPU usage above Studio
A Resources panel at the top of the right column shows the machine's CPU,
RAM, VRAM and GPU load, each split into SurfSense's share and other apps,
with a per-engine breakdown for llama.cpp, stable-diffusion.cpp, audio.cpp,
the backend and the interface.

The API samples it at GET /system/usage. Electron passes its pid as
SURFSENSE_LOCAL_SHELL_PID, and every process under it counts as the app,
named by the child of the shell that started its branch. Graphics come
from the OS: GPU performance counters and DXGI on Windows, NVML and amdgpu
sysfs with DRM fdinfo on Linux, ioreg on macOS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:41:21 -07:00
..
gpu feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00
__init__.py feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00
app_tree.py feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00
dependencies.py feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00
engines.py feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00
parent_map.py feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00
router.py feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00
sampler.py feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00
schemas.py feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00
snapshot.py feat(local): show live CPU, RAM and GPU usage above Studio 2026-09-30 15:41:21 -07:00