[idd] logging: make periodic statistics opt-in

This commit is contained in:
Geoffrey McRae
2026-08-14 02:47:56 +10:00
parent 879b8429e7
commit caf8515e9d
8 changed files with 78 additions and 54 deletions

View File

@@ -20,6 +20,7 @@
#include "capture/CFrameScheduler.h"
#include "config/CSettings.h"
#include "CDebug.h"
#include "Seq.h"
@@ -992,6 +993,9 @@ void CFrameScheduler::LogStatistics(uint64_t now)
m_lastLogPublished = m_publishedFrames;
lock.Unlock();
if (!g_settings.ShouldLogStatistics())
return;
const double acquiredRate =
static_cast<double>(acquired) * 1000000000.0 / elapsed;
DEBUG_TRACE("Frame schedule owner %u: %.3f Hz client, %.3f Hz acquired, "