16 #include <common/include/Packet.hpp> 36 std::shared_ptr<armnn::profiling::IBackendProfilingContext>>&
37 backendProfilingContexts)
38 : m_CaptureDataHolder(data)
40 , m_KeepRunning(false)
41 , m_ReadCounterValues(readCounterValue)
42 , m_SendCounterPacket(packet)
43 , m_CounterIdMap(counterIdMap)
44 , m_BackendProfilingContexts(backendProfilingContexts)
48 void Start()
override;
55 void DispatchPeriodicCounterCapturePacket(
56 const armnn::BackendId& backendId,
const std::vector<Timestamp>& timestampValues);
58 const Holder& m_CaptureDataHolder;
60 std::atomic<bool> m_KeepRunning;
61 std::thread m_PeriodCaptureThread;
66 std::shared_ptr<armnn::profiling::IBackendProfilingContext>>& m_BackendProfilingContexts;
Copyright (c) 2021 ARM Limited and Contributors.
PeriodicCounterCapture(const Holder &data, ISendCounterPacket &packet, IReadCounterValues &readCounterValue, const ICounterMappings &counterIdMap, const std::unordered_map< armnn::BackendId, std::shared_ptr< armnn::profiling::IBackendProfilingContext >> &backendProfilingContexts)
~PeriodicCounterCapture()