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

Method recordInputEvent

src/core/PerfTelemetry.cpp:498–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void PerfTelemetry::recordInputEvent(const char* kind, double durationMs)
499{
500 const qint64 now = nowNs();
501 if (!beginRecord(now))
502 return;
503
504 {
505 QMutexLocker lock(&m_mutex);
506 m_window.inputMs.append(durationMs);
507 }
508
509 if (durationMs > kInputStallMs) {
510 logStall({
511 keyValue(QStringLiteral("kind"), QStringLiteral("input")),
512 keyValue(QStringLiteral("event"), QString::fromLatin1(kind ? kind : "unknown")),
513 keyValue(QStringLiteral("durationMs"), msValue(durationMs)),
514 keyValue(QStringLiteral("drag"), m_dragActive.load(std::memory_order_relaxed) ? 1 : 0)
515 });
516 }
517
518 maybeLogSummary(now);
519}
520
521void PerfTelemetry::recordSHistoryProcessed(double durationMs)
522{

Callers 2

~PerfInputScopeMethod · 0.80
testStallThresholdMatrixFunction · 0.80

Calls 1

loadMethod · 0.45

Tested by 2

~PerfInputScopeMethod · 0.64
testStallThresholdMatrixFunction · 0.64