QcServerDebugMirror Class
What the client knows of the server's debug data (QcMsg::ServerDebug, decision E-225): the latest message and the durations of the latest ticks for the tick graph, each tick once (a message reports the ticks up to its own; those the graph already has are skipped). More...
| Header: | #include <clientcore/session/QcServerDebugMirror.h> |
Public Functions
| void | clear() |
| const std::optional<QcMsg::ServerDebug> & | latest() const |
| void | receive(const QcMsg::ServerDebug &message) |
| const QList<float> & | tickHistory() const |
Static Public Members
| const qsizetype | historyTicks |
Detailed Description
Member Function Documentation
void QcServerDebugMirror::clear()
Forgets the latest message and the history.
const std::optional<QcMsg::ServerDebug> &QcServerDebugMirror::latest() const
Returns the latest message; nothing before the first.
void QcServerDebugMirror::receive(const QcMsg::ServerDebug &message)
Takes message as the latest and adds the durations of its ticks the history does not have yet.
const QList<float> &QcServerDebugMirror::tickHistory() const
Returns the tick durations in milliseconds, oldest first.
Member Variable Documentation
const qsizetype QcServerDebugMirror::historyTicks
Ticks kept for the graph: twelve seconds.