QtCraft API C++ classes QML types Handbook

QcHealthLog Class

The health line (decision E-834): every interval one info line "HEALTH …" in qtcraft.health with memory (resident and peak), frame and tick times, chunks, entities, players, round trip and network rates, so a log of a long playtest shows how the program fared before a problem. More...

Header: #include <common/diagnostics/QcHealthLog.h>
Inherits: QObject

Public Types

struct Memory
Source

Static Public Members

const int defaultIntervalSeconds
QString line(const QcHealthSample &sample, QcHealthLog::Memory memory, const std::optional<QcTraffic> &previous, double seconds)

Detailed Description

The source fills what its program knows; memory comes from QcProcessMemory.

Member Type Documentation

[alias] QcHealthLog::Source

Gives the sample of a line.

Member Function Documentation

[static] QString QcHealthLog::line(const QcHealthSample &sample, QcHealthLog::Memory memory, const std::optional<QcTraffic> &previous, double seconds)

Returns the line for sample with memory; network rates against previous over seconds.

Member Variable Documentation

const int QcHealthLog::defaultIntervalSeconds

Default interval when a log file is written and no –health-log is given.