summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Analytics.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2017-05-01 21:09:55 +0200
committerGitHub <noreply@github.com>2017-05-01 21:09:55 +0200
commite9349cf029751cee41ab51637a2906d50474726d (patch)
treef89e3f73afbfe6d0e8130fe49a17dd32faf657e6 /Source/Core/Common/Analytics.cpp
parent54dcd3a89b1aeae18f23d35193662f3d8770f37f (diff)
parent366aeeb48819817da301b47a7ee23cf1bf3317e3 (diff)
Merge pull request #5283 from spycrab/issue_9622
Make ENABLE_ANALYTICS=0 do something (Issue #9622)
Diffstat (limited to 'Source/Core/Common/Analytics.cpp')
-rw-r--r--Source/Core/Common/Analytics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/Analytics.cpp b/Source/Core/Common/Analytics.cpp
index 1110c5ed60..233badebd2 100644
--- a/Source/Core/Common/Analytics.cpp
+++ b/Source/Core/Common/Analytics.cpp
@@ -134,6 +134,7 @@ AnalyticsReporter::~AnalyticsReporter()
void AnalyticsReporter::Send(AnalyticsReportBuilder&& report)
{
+#if defined(USE_ANALYTICS) && USE_ANALYTICS
// Put a bound on the size of the queue to avoid uncontrolled memory growth.
constexpr u32 QUEUE_SIZE_LIMIT = 25;
if (m_reports_queue.Size() < QUEUE_SIZE_LIMIT)
@@ -141,6 +142,7 @@ void AnalyticsReporter::Send(AnalyticsReportBuilder&& report)
m_reports_queue.Push(report.Consume());
m_reporter_event.Set();
}
+#endif
}
void AnalyticsReporter::ThreadProc()