| 104 | // --- Disabled hot-path is no-op --------------------------------------------- |
| 105 | |
| 106 | void testDisabledHotPath() |
| 107 | { |
| 108 | QLoggingCategory::setFilterRules(QStringLiteral("aether.perf.debug=false")); |
| 109 | PerfTelemetry::setClockOverrideForTest(1'000'000'000LL); |
| 110 | PerfTelemetry::instance().resetForTest(); |
| 111 | resetCapture(); |
| 112 | |
| 113 | for (int i = 0; i < 50; ++i) |
| 114 | PerfTelemetry::instance().recordPanUpdate(50.0); |
| 115 | |
| 116 | report("disabled hot-path emits no log lines", |
| 117 | g_capturedLines.isEmpty(), |
| 118 | g_capturedLines.isEmpty() ? "" : std::string("got ") + std::to_string(g_capturedLines.size()) + " lines"); |
| 119 | |
| 120 | QLoggingCategory::setFilterRules(QStringLiteral("aether.perf.debug=true")); |
| 121 | } |
| 122 | |
| 123 | // --- Window aggregation ----------------------------------------------------- |
| 124 |
no test coverage detected