Syntalos::RunStatistics
Syntalos::RunStatistics
Statistics collected by the engine over one experiment run.
#include <runstatistics.h>
Public Functions
| Name | |
|---|---|
| QJsonObject | toJson() const |
| QByteArray | toJsonData() const |
| QString | toHtml() const Render the statistics as an HTML fragment for display in a rich-text widget. |
| std::expected< void, QString > | saveJson(const QString & path) const Write the statistics as JSON to path, replacing any existing file. |
| std::expected< RunStatistics, QString > | fromJson(const QJsonObject & root) Read statistics back from a JSON document written by toJson(). |
| std::expected< RunStatistics, QString > | loadJson(const QString & path) Read statistics from a JSON file written by saveJson(). |
Public Attributes
| Name | |
|---|---|
| int | FormatVersion |
| QDateTime | started |
| QString | runId |
| QString | experimentId |
| QString | exportDir |
| bool | ephemeral |
| bool | failed |
| QString | failReason |
| double | durationSec |
| double | usageWindowSec recording length (Syntalos Master Clock) |
| qint64 | bytesWritten wall-clock length of the window the usage deltas were measured over |
| int | cpuCoreCount |
| int | cpuPhysicalCoreCount logical CPUs |
| uint | priorityBudget physical cores, 0 if unknown |
| int | threadsElevated RtKit elevation budget the engine distributed. |
| int | threadsTotal threads and worker processes running with raised priority (realtime or nice < 0) |
| std::optional< ThreadUsageStats > | mainThread dedicated module threads + event threads |
| std::optional< ThreadUsageStats > | process usage delta of the engine (GUI) thread over the run |
| qint64 | peakRssKiB usage delta of the whole Syntalos process over the run |
| QList< ModuleRunStats > | modules peak resident set size of the process (lifetime, not per run) |
| QList< EventThreadRunStats > | eventThreads |
| QList< ConnectionRunStats > | connections |
| QMap< QString, QString > | system some relevant system info that we want to include in our report |
Public Functions Documentation
function toJson
QJsonObject toJson() constfunction toJsonData
QByteArray toJsonData() constfunction toHtml
QString toHtml() constRender the statistics as an HTML fragment for display in a rich-text widget.
function saveJson
std::expected< void, QString > saveJson(
const QString & path
) constWrite the statistics as JSON to path, replacing any existing file.
function fromJson
static std::expected< RunStatistics, QString > fromJson(
const QJsonObject & root
)Read statistics back from a JSON document written by toJson().
function loadJson
static std::expected< RunStatistics, QString > loadJson(
const QString & path
)Read statistics from a JSON file written by saveJson().
Public Attributes Documentation
variable FormatVersion
static int FormatVersion = 1;variable started
QDateTime started;variable runId
QString runId;variable experimentId
QString experimentId;variable exportDir
QString exportDir;variable ephemeral
bool ephemeral = false;variable failed
bool failed = false;variable failReason
QString failReason;variable durationSec
double durationSec = 0.0;variable usageWindowSec
double usageWindowSec = 0.0;recording length (Syntalos Master Clock)
variable bytesWritten
qint64 bytesWritten = -1;wall-clock length of the window the usage deltas were measured over
variable cpuCoreCount
int cpuCoreCount = 0;variable cpuPhysicalCoreCount
int cpuPhysicalCoreCount = 0;logical CPUs
variable priorityBudget
uint priorityBudget = 0;physical cores, 0 if unknown
variable threadsElevated
int threadsElevated = 0;RtKit elevation budget the engine distributed.
variable threadsTotal
int threadsTotal = 0;threads and worker processes running with raised priority (realtime or nice < 0)
variable mainThread
std::optional< ThreadUsageStats > mainThread;dedicated module threads + event threads
variable process
std::optional< ThreadUsageStats > process;usage delta of the engine (GUI) thread over the run
variable peakRssKiB
qint64 peakRssKiB = -1;usage delta of the whole Syntalos process over the run
variable modules
QList< ModuleRunStats > modules;peak resident set size of the process (lifetime, not per run)
variable eventThreads
QList< EventThreadRunStats > eventThreads;variable connections
QList< ConnectionRunStats > connections;variable system
QMap< QString, QString > system;some relevant system info that we want to include in our report
Updated on 2026-11-26 at 18:54:14 +0000