diff options
| author | Stefan Boberg <[email protected]> | 2026-04-03 13:24:11 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-04-03 13:24:11 +0200 |
| commit | 70f257ba2ac54a8cb5104569be46a64589629aa5 (patch) | |
| tree | 3803dbb959d1a9c63cb47b4eab870ca6569b1d49 /src/zenhttp/servers/httpsys.cpp | |
| parent | Fix terminal cleanup on Ctrl+C during progress bar display (diff) | |
| download | zen-70f257ba2ac54a8cb5104569be46a64589629aa5.tar.xz zen-70f257ba2ac54a8cb5104569be46a64589629aa5.zip | |
Cache static system metrics to avoid expensive topology queries on every call
- Add RefreshDynamicSystemMetrics() that only queries values that change
at runtime (available memory, uptime, swap) on all three platforms
- SystemMetricsTracker now snapshots full GetSystemMetrics() once at
construction and reuses cached topology/total memory on each Query()
- Avoids repeated GetLogicalProcessorInformationEx traversal on Windows,
/proc/cpuinfo parsing on Linux, and sysctl topology calls on macOS
Diffstat (limited to 'src/zenhttp/servers/httpsys.cpp')
0 files changed, 0 insertions, 0 deletions