diff options
author | Keith Davis <keith.davis@arm.com> | 2019-10-24 17:30:41 +0100 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2019-11-06 08:30:31 +0000 |
commit | 3201eea0565ce2bb0418d1936fec71bdeb14c084 (patch) | |
tree | f73017f6338d707165dbcfd717ddc9793b1858e0 /src/profiling/ConnectionAcknowledgedCommandHandler.hpp | |
parent | fe2e2cbbbe5294072b2d58755b8a095f32a97e75 (diff) | |
download | armnn-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 'src/profiling/ConnectionAcknowledgedCommandHandler.hpp')
-rw-r--r-- | src/profiling/ConnectionAcknowledgedCommandHandler.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/profiling/ConnectionAcknowledgedCommandHandler.hpp b/src/profiling/ConnectionAcknowledgedCommandHandler.hpp index 255fcf645a..7e7904de0f 100644 --- a/src/profiling/ConnectionAcknowledgedCommandHandler.hpp +++ b/src/profiling/ConnectionAcknowledgedCommandHandler.hpp @@ -6,6 +6,7 @@ #pragma once #include "CommandHandlerFunctor.hpp" +#include "ISendCounterPacket.hpp" #include "Packet.hpp" #include "ProfilingStateMachine.hpp" @@ -22,15 +23,22 @@ public: ConnectionAcknowledgedCommandHandler(uint32_t familyId, uint32_t packetId, uint32_t version, + ICounterDirectory& counterDirectory, + ISendCounterPacket& sendCounterPacket, ProfilingStateMachine& profilingStateMachine) : CommandHandlerFunctor(familyId, packetId, version) + , m_CounterDirectory(counterDirectory) + , m_SendCounterPacket(sendCounterPacket) , m_StateMachine(profilingStateMachine) {} void operator()(const Packet& packet) override; private: - ProfilingStateMachine& m_StateMachine; + const ICounterDirectory& m_CounterDirectory; + ISendCounterPacket& m_SendCounterPacket; + ProfilingStateMachine& m_StateMachine; + }; } // namespace profiling |