MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / testFrameRestartCounter

Function testFrameRestartCounter

tests/perf_telemetry_test.cpp:279–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277// --- Frame-restart counter --------------------------------------------------
278
279void testFrameRestartCounter()
280{
281 constexpr qint64 t0 = 300'000'000'000LL;
282 prime(t0);
283
284 PerfTelemetry::instance().recordFrameRestart(PerfTelemetry::FrameKind::Panadapter);
285 PerfTelemetry::instance().recordFrameRestart(PerfTelemetry::FrameKind::Panadapter);
286 PerfTelemetry::instance().recordFrameRestart(PerfTelemetry::FrameKind::Panadapter);
287
288 const QString summary = flushSummary(t0);
289 const QString restarts = fieldValue(summary, QStringLiteral("fftRestarts"));
290 report("3x recordFrameRestart(Panadapter) shows fftRestarts=3",
291 restarts == QLatin1String("3"),
292 std::string("got '") + restarts.toStdString() + "'");
293}
294
295// --- Percentile-95 boundary cases (exercised through the public path) ------
296

Callers 1

mainFunction · 0.85

Calls 5

primeFunction · 0.85
flushSummaryFunction · 0.85
fieldValueFunction · 0.85
recordFrameRestartMethod · 0.80
reportFunction · 0.70

Tested by

no test coverage detected