From 3e9bc19ad523361e6b18057849e30c0c48183915 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Wed, 23 Mar 2022 23:01:26 +0000 Subject: IVGCVSW-6706 Create the libpipeClient library Change-Id: I2368aade38ad3808fab55d8a86cd659d4e95d91e Signed-off-by: Jim Flynn --- src/profiling/PeriodicCounterCapture.hpp | 71 -------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 src/profiling/PeriodicCounterCapture.hpp (limited to 'src/profiling/PeriodicCounterCapture.hpp') 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 -#include -#include - -#include - -#include - -#include -#include -#include - -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>& 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& timestampValues); - - const Holder& m_CaptureDataHolder; - bool m_IsRunning; - std::atomic m_KeepRunning; - std::thread m_PeriodCaptureThread; - IReadCounterValues& m_ReadCounterValues; - ISendCounterPacket& m_SendCounterPacket; - const ICounterMappings& m_CounterIdMap; - const std::unordered_map>& m_BackendProfilingContexts; -}; - -} // namespace pipe - -} // namespace arm -- cgit v1.2.1