MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / fillReportRow

Function fillReportRow

app/src/Benchmark/HotpathBenchmark.cpp:746–762  ·  view source on GitHub ↗

* @brief Fills one report row: ungated runs (informational tiers) show n/a target and result. */

Source from the content-addressed store, hash-verified

744 * @brief Fills one report row: ungated runs (informational tiers) show n/a target and result.
745 */
746static void fillReportRow(const HotpathBenchmark::Result& r, const char* tag, QString* cells)
747{
748 Q_ASSERT(tag != nullptr);
749 Q_ASSERT(cells != nullptr);
750
751 const bool gated = r.minFps > 1.0;
752 cells[0] = QString::fromLatin1(tag);
753 cells[1] = groupedCount(static_cast<double>(r.framesParsed));
754 cells[2] = groupedCount(static_cast<double>(r.framesSkipped));
755 cells[3] = QString::number(r.elapsedSeconds, 'f', 2);
756 cells[4] = groupedCount(r.framesPerSecond);
757 cells[5] = gated ? groupedCount(r.minFps) : QStringLiteral("n/a");
758 if (gated)
759 cells[6] = r.passed ? QStringLiteral("PASS") : QStringLiteral("FAIL");
760 else
761 cells[6] = QStringLiteral("n/a");
762}
763
764/**
765 * @brief Prints the per-run throughput table through the shared stdout + file sink. The named

Callers 1

printRunTableFunction · 0.85

Calls 1

groupedCountFunction · 0.85

Tested by

no test coverage detected