Commit graph

3 commits

Author SHA1 Message Date
Lukas Brübach
fa823e4b1c [Client] Discard suspend-spanning gaps in LagMonitor
Windows counts sleep time in its monotonic clock, so a suspend would
fabricate one bogus stall per resume. Reset the clock on application
state changes and drop implausibly huge gaps; extract recordGap() for
testability.

Took 3 minutes
2026-08-23 00:19:18 +02:00
Lukas Brübach
45fe8b57a5 [Client] Rename LagMonitor constants to SCREAMING_SNAKE_CASE
Took 15 minutes
2026-08-23 00:15:33 +02:00
Lukas Brübach
8a9635949f [Client] Detect main-thread event loop stalls
LagMonitor ticks the GUI event loop every 500 ms and records gaps
beyond 2 s as stalls, warning with their duration and keeping a
bounded ring of recent records for diagnostics. Measurement uses a
monotonic QElapsedTimer so wall-clock steps and suspend do not
fabricate stalls; recorded timestamps stay in wall time for
correlating with user reports.

Took 1 minute

Took 13 minutes


Took 2 minutes
2026-08-23 00:15:33 +02:00