summaryrefslogtreecommitdiffstats
path: root/desktop/modules/perf/test_vram.sh
AgeCommit message (Collapse)AuthorFilesLines
36 hoursperf: sum VRAM in a shell script instead of in QMLDanilo M.1-0/+40
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>