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