| 277 | // --- Frame-restart counter -------------------------------------------------- |
| 278 | |
| 279 | void 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 |
no test coverage detected