aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/src/PeriodicCounterCapture.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-04-12 17:19:28 +0100
committerTeresaARM <teresa.charlinreyes@arm.com>2022-04-14 14:06:56 +0000
commite195a0418d86650e132737716059bff0ec80257f (patch)
tree1678283a958a2ab74cd27b648f5a69ef5270d289 /profiling/client/src/PeriodicCounterCapture.hpp
parent69515d3b36653a00a5abee8bf52ac26dd6522bee (diff)
downloadarmnn-e195a0418d86650e132737716059bff0ec80257f.tar.gz
IVGCVSW-6710 Add compile of BareMetalDeserializedGraph sample
Change-Id: Ice69c2a22f589f68d302f80500dfe4e514a796d2 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
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;