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

Method resetForTest

src/core/PerfTelemetry.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void PerfTelemetry::resetForTest()
62{
63 QMutexLocker lock(&m_mutex);
64 m_window = Window{};
65 m_windowStartNs = 0;
66 m_lastHeartbeatNs = 0;
67 m_wasEnabled.store(false, std::memory_order_relaxed);
68 m_dragActive.store(false, std::memory_order_relaxed);
69 m_waterfallLineDurationMs.store(0, std::memory_order_relaxed);
70}
71
72bool PerfTelemetry::enabled() const
73{

Callers 2

primeFunction · 0.80
testDisabledHotPathFunction · 0.80

Calls

no outgoing calls

Tested by 2

primeFunction · 0.64
testDisabledHotPathFunction · 0.64