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

Function testDisabledHotPath

tests/perf_telemetry_test.cpp:106–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104// --- Disabled hot-path is no-op ---------------------------------------------
105
106void 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

Callers 1

mainFunction · 0.85

Calls 6

resetCaptureFunction · 0.85
resetForTestMethod · 0.80
recordPanUpdateMethod · 0.80
reportFunction · 0.70
isEmptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected