aboutsummaryrefslogtreecommitdiff
path: root/tests/profiling/gatordmock/DirectoryCaptureCommandHandler.hpp
diff options
context:
space:
mode:
authorKeith Davis <keith.davis@arm.com>2019-10-24 17:30:41 +0100
committerColm Donelan <colm.donelan@arm.com>2019-11-06 08:30:31 +0000
commit3201eea0565ce2bb0418d1936fec71bdeb14c084 (patch)
treef73017f6338d707165dbcfd717ddc9793b1858e0 /tests/profiling/gatordmock/DirectoryCaptureCommandHandler.hpp
parentfe2e2cbbbe5294072b2d58755b8a095f32a97e75 (diff)
downloadarmnn-3201eea0565ce2bb0418d1936fec71bdeb14c084.tar.gz
IVGCVSW-3444 File Only Profiling Connection
* Add FileOnlyProfilingConnection Decorator * Fix bug where Conn Ack not automatically sent back * Modify GatordMock to use the Counter Directory class. * Promote DirectoryCaptureCommandHandler from GatordMock into ArmNN. * Remove MockUtils as it's contents were moved or deleted. * Rewrite GatordMockTests to use Counter Directory class. * Flush streams in ProfilingConnectionDumpToFileDecorator::Close. Signed-off-by: Keith Davis <keith.davis@arm.com> Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: I77b2aedece24150dd31691b577f3b5d81b2e226f
Diffstat (limited to 'tests/profiling/gatordmock/DirectoryCaptureCommandHandler.hpp')
-rw-r--r--tests/profiling/gatordmock/DirectoryCaptureCommandHandler.hpp75
1 files changed, 0 insertions, 75 deletions
diff --git a/tests/profiling/gatordmock/DirectoryCaptureCommandHandler.hpp b/tests/profiling/gatordmock/DirectoryCaptureCommandHandler.hpp
deleted file mode 100644
index 4cf96be741..0000000000
--- a/tests/profiling/gatordmock/DirectoryCaptureCommandHandler.hpp
+++ /dev/null
@@ -1,75 +0,0 @@
-//
-// Copyright © 2019 Arm Ltd. All rights reserved.
-// SPDX-License-Identifier: MIT
-//
-
-#pragma once
-
-#include "CounterDirectory.hpp"
-#include "GatordMockService.hpp"
-#include "MockUtils.hpp"
-
-
-#include "Packet.hpp"
-#include "CommandHandlerFunctor.hpp"
-#include "SendCounterPacket.hpp"
-#include "IPeriodicCounterCapture.hpp"
-
-
-#include <vector>
-#include <thread>
-#include <functional>
-
-namespace armnn
-{
-
-namespace gatordmock
-{
-
-class DirectoryCaptureCommandHandler : public profiling::CommandHandlerFunctor
-{
-
-public:
-
- DirectoryCaptureCommandHandler(uint32_t familyId,
- uint32_t packetId,
- uint32_t version,
- bool quietOperation = false)
- : CommandHandlerFunctor(familyId, packetId, version)
- , m_QuietOperation(quietOperation)
- , m_CounterDirectoryCount(0)
- {}
-
- void operator()(const armnn::profiling::Packet &packet) override;
-
- CounterDirectory GetCounterDirectory() const;
- uint32_t GetCounterDirectoryCount() const;
-
-private:
- void ParseData(const armnn::profiling::Packet &packet);
-
- std::vector<CategoryRecord> ReadCategoryRecords(const unsigned char *const data,
- uint32_t offset,
- std::vector<uint32_t> categoryOffsets);
-
- std::vector<CounterSetRecord> ReadCounterSetRecords(const unsigned char *const data,
- uint32_t offset,
- std::vector<uint32_t> eventRecordsOffsets);
-
- std::vector<DeviceRecord> ReadDeviceRecords(const unsigned char *const data,
- uint32_t offset,
- std::vector<uint32_t> eventRecordsOffsets);
-
- std::vector<EventRecord> ReadEventRecords(const unsigned char *const data,
- uint32_t offset,
- std::vector<uint32_t> eventRecordsOffsets);
-
- CounterDirectory m_CounterDirectory;
-
- bool m_QuietOperation;
- std::atomic<uint32_t> m_CounterDirectoryCount;
-};
-
-} // namespace gatordmock
-
-} // namespace armnn