[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

@@ -21,6 +21,7 @@
#include "CHIDDevice.h"
#include "CDebug.h"
#include "config/CSettings.h"
#include "CSRWLock.h"
#include "HIDReports.h"
#include "ipc/CInputPipeClient.h"
@@ -671,6 +672,9 @@ void CHIDDevice::LogStatistics()
statistics.overflows || statistics.resetDiscarded))
return;
if (!CSettings::ShouldLogStatistics())
return;
DEBUG_TRACE("HID reports: %llu direct, %llu queued, peak %zu; "
"%llu relative and %llu absolute coalesced, %llu stale absolute "
"compacted, %llu keyboard and %llu consumer duplicates, "