From ffd6b594724d7aadd2cd08782485ece9a2aa5331 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 17 Oct 2026 11:57:30 +0200 Subject: perf: sample everything always, not only while the page is open Per-core load, the network rate, VRAM and the fan used to run only while a PerfPanel existed, and closing the page cleared them. Opening the drawer therefore always showed a fresh first sample and an empty network graph, which made the page not very useful as a glance at what just happened. Everything now samples for the whole session, so the graph opens on the last minute of history. The cost is the VRAM fdinfo scan, ~14ms every 2s, now unconditional; a ponytail note beside it says to gate it on the panel again if that shows up. The LAN address and the public IP check run once at startup instead of on each page open. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/perf/PerfPanel.qml | 4 ---- 1 file changed, 4 deletions(-) (limited to 'desktop/modules/perf/PerfPanel.qml') diff --git a/desktop/modules/perf/PerfPanel.qml b/desktop/modules/perf/PerfPanel.qml index de9021b..aa2e49f 100644 --- a/desktop/modules/perf/PerfPanel.qml +++ b/desktop/modules/perf/PerfPanel.qml @@ -34,10 +34,6 @@ Column { function sensor(label) { return Perf.temps.find(t => t.label === label) || { value: null, warn: 0, crit: 0 }; } - // Detailed sampling (per-core, network, VRAM, fan) runs while the panel - // exists, which is while the drawer page is shown. - Component.onCompleted: Perf.viewers++ - Component.onDestruction: Perf.viewers-- function pct(part, whole) { return part === null || !whole ? null : 100 * part / whole; } function last(list) { return list.length ? list[list.length - 1] : null; } -- cgit v1.2.3