diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-28 09:18:17 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-28 09:18:17 +0100 |
| commit | 11c4c745c7ed5477c74abe7de3458924a0567a3a (patch) | |
| tree | 1d5d5a522f4bd05fc60f37c87618c9c438bd4299 /desktop/assistant/Models.qml | |
| parent | ad0989dda8dc6420d16aaaa6aa40c47917145342 (diff) | |
| download | quickshell-11c4c745c7ed5477c74abe7de3458924a0567a3a.tar.gz quickshell-11c4c745c7ed5477c74abe7de3458924a0567a3a.zip | |
perf: sum VRAM in a shell script instead of in QML
A process holding thousands of DRM fds makes the fdinfo scan a few
hundred KB. Parsing that in QML every 2s drove Qt's unmanaged-heap
counter to underflow, after which the V4 engine ran a GC on every
allocation and the shell sat at 100% CPU.
vram.sh does the scan and the per-client-id sum in awk and prints one
number, or nothing when no xe client is found, which the panel draws as
a dash. Perf.js loses vram() and its test; test_vram.sh carries the same
cases against the script, which takes a file argument instead of
scanning so the test can feed it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/assistant/Models.qml')
0 files changed, 0 insertions, 0 deletions
