From 480336906137587d020da987039cfd20ee4cc3a5 Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Fri, 20 Sep 2019 12:04:55 +0100 Subject: IVGCVSW-3437 Add Request Counter Directory Command Handler Signed-off-by: Narumol Prangnawarat Change-Id: I56ef68d6fe993d271a0fc43467f2a63cdcaee496 --- .../RequestCounterDirectoryCommandHandler.hpp | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/profiling/RequestCounterDirectoryCommandHandler.hpp (limited to 'src/profiling/RequestCounterDirectoryCommandHandler.hpp') diff --git a/src/profiling/RequestCounterDirectoryCommandHandler.hpp b/src/profiling/RequestCounterDirectoryCommandHandler.hpp new file mode 100644 index 0000000000..a03300af48 --- /dev/null +++ b/src/profiling/RequestCounterDirectoryCommandHandler.hpp @@ -0,0 +1,41 @@ +// +// Copyright © 2019 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "CommandHandlerFunctor.hpp" +#include "ISendCounterPacket.hpp" +#include "Packet.hpp" + +namespace armnn +{ + +namespace profiling +{ + +class RequestCounterDirectoryCommandHandler : public CommandHandlerFunctor +{ + +public: + RequestCounterDirectoryCommandHandler(uint32_t packetId, uint32_t version, + ICounterDirectory& counterDirectory, + ISendCounterPacket& sendCounterPacket) + : CommandHandlerFunctor(packetId, version), + m_CounterDirectory(counterDirectory), + m_SendCounterPacket(sendCounterPacket) + {} + + void operator()(const Packet& packet) override; + + +private: + ICounterDirectory& m_CounterDirectory; + ISendCounterPacket& m_SendCounterPacket; +}; + +} // namespace profiling + +} // namespace armnn + -- cgit v1.2.1