diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-23 23:01:26 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-23 23:43:35 +0000 |
commit | 3e9bc19ad523361e6b18057849e30c0c48183915 (patch) | |
tree | b7b012a9734ce39d054fc5d92302780fd838e5c8 /src/profiling/PeriodicCounterCapture.hpp | |
parent | 277618302d0f131eac0b6ac2015dd3eb09aa6ff9 (diff) | |
download | armnn-3e9bc19ad523361e6b18057849e30c0c48183915.tar.gz |
IVGCVSW-6706 Create the libpipeClient library
Change-Id: I2368aade38ad3808fab55d8a86cd659d4e95d91e
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/PeriodicCounterCapture.hpp')
-rw-r--r-- | src/profiling/PeriodicCounterCapture.hpp | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/src/profiling/PeriodicCounterCapture.hpp b/src/profiling/PeriodicCounterCapture.hpp deleted file mode 100644 index 88084172ca..0000000000 --- a/src/profiling/PeriodicCounterCapture.hpp +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright © 2019 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#pragma once - -#include "IPeriodicCounterCapture.hpp" -#include "SendCounterPacket.hpp" - -#include <client/include/CounterIdMap.hpp> -#include <client/include/Holder.hpp> -#include <client/include/ICounterValues.hpp> - -#include <client/include/backends/IBackendProfilingContext.hpp> - -#include <common/include/Packet.hpp> - -#include <atomic> -#include <mutex> -#include <thread> - -namespace arm -{ - -namespace pipe -{ - -class PeriodicCounterCapture final : public IPeriodicCounterCapture -{ -public: - PeriodicCounterCapture(const Holder& data, - ISendCounterPacket& packet, - IReadCounterValues& readCounterValue, - const ICounterMappings& counterIdMap, - const std::unordered_map<std::string, - std::shared_ptr<IBackendProfilingContext>>& backendProfilingContexts) - : m_CaptureDataHolder(data) - , m_IsRunning(false) - , m_KeepRunning(false) - , m_ReadCounterValues(readCounterValue) - , m_SendCounterPacket(packet) - , m_CounterIdMap(counterIdMap) - , m_BackendProfilingContexts(backendProfilingContexts) - {} - ~PeriodicCounterCapture() { Stop(); } - - void Start() override; - void Stop() override; - bool IsRunning() const { return m_IsRunning; } - -private: - CaptureData ReadCaptureData(); - void Capture(IReadCounterValues& readCounterValues); - void DispatchPeriodicCounterCapturePacket( - const std::string& backendId, const std::vector<Timestamp>& timestampValues); - - const Holder& m_CaptureDataHolder; - bool m_IsRunning; - std::atomic<bool> m_KeepRunning; - std::thread m_PeriodCaptureThread; - IReadCounterValues& m_ReadCounterValues; - ISendCounterPacket& m_SendCounterPacket; - const ICounterMappings& m_CounterIdMap; - const std::unordered_map<std::string, - std::shared_ptr<IBackendProfilingContext>>& m_BackendProfilingContexts; -}; - -} // namespace pipe - -} // namespace arm |