mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 07:01:30 +00:00
[idd] logging: make periodic statistics opt-in
This commit is contained in:
@@ -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, "
|
||||
|
||||
Reference in New Issue
Block a user