aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/src/PeriodicCounterCapture.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'profiling/client/src/PeriodicCounterCapture.hpp')
-rw-r--r--profiling/client/src/PeriodicCounterCapture.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/profiling/client/src/PeriodicCounterCapture.hpp b/profiling/client/src/PeriodicCounterCapture.hpp
index 88084172ca..35ceb0cb77 100644
--- a/profiling/client/src/PeriodicCounterCapture.hpp
+++ b/profiling/client/src/PeriodicCounterCapture.hpp
@@ -17,8 +17,11 @@
#include <common/include/Packet.hpp>
#include <atomic>
+
+#if !defined(ARMNN_DISABLE_THREADS)
#include <mutex>
#include <thread>
+#endif
namespace arm
{
@@ -34,7 +37,7 @@ public:
IReadCounterValues& readCounterValue,
const ICounterMappings& counterIdMap,
const std::unordered_map<std::string,
- std::shared_ptr<IBackendProfilingContext>>& backendProfilingContexts)
+ std::shared_ptr<IBackendProfilingContext>>& backendProfilingContexts)
: m_CaptureDataHolder(data)
, m_IsRunning(false)
, m_KeepRunning(false)
@@ -58,7 +61,9 @@ private:
const Holder& m_CaptureDataHolder;
bool m_IsRunning;
std::atomic<bool> m_KeepRunning;
+#if !defined(ARMNN_DISABLE_THREADS)
std::thread m_PeriodCaptureThread;
+#endif
IReadCounterValues& m_ReadCounterValues;
ISendCounterPacket& m_SendCounterPacket;
const ICounterMappings& m_CounterIdMap;