diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-10 14:30:29 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-10 14:30:56 +0100 |
commit | 8efc500a7465c03877db8bbe443134f2b1bbc1af (patch) | |
tree | fcf4f4a56fa5f20ace8a1e5dfc175cecfd2373a7 /src/profiling/RequestCounterDirectoryCommandHandler.hpp | |
parent | a3600ba71978225e4d21399fb781d4850f2bb25f (diff) | |
download | armnn-8efc500a7465c03877db8bbe443134f2b1bbc1af.tar.gz |
IVGCVSW-3963 Implement the Request Counter Directory Handler
* Integrated the RequestCounterDirectoryCommandHandler in the
ProfilingService class
* Code refactoring
* Added/Updated unit tests
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I60d9f8acf166e29b3dabc921dbdb8149461bd85f
Diffstat (limited to 'src/profiling/RequestCounterDirectoryCommandHandler.hpp')
-rw-r--r-- | src/profiling/RequestCounterDirectoryCommandHandler.hpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/profiling/RequestCounterDirectoryCommandHandler.hpp b/src/profiling/RequestCounterDirectoryCommandHandler.hpp index a03300af48..02bf64d17a 100644 --- a/src/profiling/RequestCounterDirectoryCommandHandler.hpp +++ b/src/profiling/RequestCounterDirectoryCommandHandler.hpp @@ -8,6 +8,7 @@ #include "CommandHandlerFunctor.hpp" #include "ISendCounterPacket.hpp" #include "Packet.hpp" +#include "ProfilingStateMachine.hpp" namespace armnn { @@ -19,23 +20,25 @@ class RequestCounterDirectoryCommandHandler : public CommandHandlerFunctor { public: - RequestCounterDirectoryCommandHandler(uint32_t packetId, uint32_t version, + RequestCounterDirectoryCommandHandler(uint32_t packetId, + uint32_t version, ICounterDirectory& counterDirectory, - ISendCounterPacket& sendCounterPacket) - : CommandHandlerFunctor(packetId, version), - m_CounterDirectory(counterDirectory), - m_SendCounterPacket(sendCounterPacket) + ISendCounterPacket& sendCounterPacket, + ProfilingStateMachine& profilingStateMachine) + : CommandHandlerFunctor(packetId, version) + , m_CounterDirectory(counterDirectory) + , m_SendCounterPacket(sendCounterPacket) + , m_StateMachine(profilingStateMachine) {} void operator()(const Packet& packet) override; - private: - ICounterDirectory& m_CounterDirectory; + const ICounterDirectory& m_CounterDirectory; ISendCounterPacket& m_SendCounterPacket; + const ProfilingStateMachine& m_StateMachine; }; } // namespace profiling } // namespace armnn - |