Cockatrice/libcockatrice_protocol/libcockatrice/protocol
BruebachL b91e872f5f
[Network] Measure real server round-trip times (#7153)
* [Network] Measure real server round-trip times

Time each command container from send to response with QElapsedTimer,
aggregate samples in a fixed-size ring buffer (last/median/p95/max),
and emit aggregated pingStatsUpdated at most once per second so the
hot path stays free of signal traffic. Stats are cleared on
disconnect. Forward the signal through ConnectionController for UI
consumers. Unit-tested in latency_tracker_test.

Took 37 minutes

Took 4 minutes

# Commit time for manual adjustment:
# Took 8 minutes

* Move params to struct, more informative debug

Took 56 seconds

Took 53 seconds

Took 2 minutes

Took 33 seconds

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-08-23 00:03:52 +02:00
..
pb [Server/Client/Protocol] Reporting users + moderation queue functionality (#7091) 2026-08-21 15:00:13 +02:00
debug_pb_message.cpp Split trice_limits.h into dedicated headers (#7025) 2026-06-29 14:37:52 -07:00
debug_pb_message.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
featureset.cpp style: Add braces to all control flow statements (#6887) 2026-05-16 19:19:53 +02:00
featureset.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
get_pb_extension.cpp style: Add braces to all control flow statements (#6887) 2026-05-16 19:19:53 +02:00
get_pb_extension.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
pending_command.cpp [Network] Measure real server round-trip times (#7153) 2026-08-23 00:03:52 +02:00
pending_command.h [Network] Measure real server round-trip times (#7153) 2026-08-23 00:03:52 +02:00