diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-11 17:19:56 +0100 |
---|---|---|
committer | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2019-10-14 16:06:26 +0100 |
commit | 994b5349180b41849ee616fa4f0d3b94a928f48f (patch) | |
tree | 9e204588e3d6e997b46bd83ec935a33e32941e9c /src/profiling/ProfilingService.hpp | |
parent | 53e469915bc6552c0d79cb6461512c7c1168ee2d (diff) | |
download | armnn-994b5349180b41849ee616fa4f0d3b94a928f48f.tar.gz |
IVGCVSW-3971 Implement the Per-Job Counter Selection command handler
* Added new PerJobCounterSelectionCommandHandler class
* The new handler drops the incoming packet without altering the
state of the profiling service
* Added unit test
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I2b1bb803318a9e6c438391a0985893eb412e7787
Diffstat (limited to 'src/profiling/ProfilingService.hpp')
-rw-r--r-- | src/profiling/ProfilingService.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp index d4fa85604c..1afcb1ca97 100644 --- a/src/profiling/ProfilingService.hpp +++ b/src/profiling/ProfilingService.hpp @@ -16,6 +16,7 @@ #include "ConnectionAcknowledgedCommandHandler.hpp" #include "RequestCounterDirectoryCommandHandler.hpp" #include "PeriodicCounterSelectionCommandHandler.hpp" +#include "PerJobCounterSelectionCommandHandler.hpp" namespace armnn { @@ -96,6 +97,7 @@ private: ConnectionAcknowledgedCommandHandler m_ConnectionAcknowledgedCommandHandler; RequestCounterDirectoryCommandHandler m_RequestCounterDirectoryCommandHandler; PeriodicCounterSelectionCommandHandler m_PeriodicCounterSelectionCommandHandler; + PerJobCounterSelectionCommandHandler m_PerJobCounterSelectionCommandHandler; protected: // Default constructor/destructor kept protected for testing @@ -131,6 +133,9 @@ protected: *this, m_SendCounterPacket, m_StateMachine) + , m_PerJobCounterSelectionCommandHandler(5, + m_PacketVersionResolver.ResolvePacketVersion(4).GetEncodedValue(), + m_StateMachine) { // Register the "Connection Acknowledged" command handler m_CommandHandlerRegistry.RegisterFunctor(&m_ConnectionAcknowledgedCommandHandler); @@ -140,6 +145,9 @@ protected: // Register the "Periodic Counter Selection" command handler m_CommandHandlerRegistry.RegisterFunctor(&m_PeriodicCounterSelectionCommandHandler); + + // Register the "Per-Job Counter Selection" command handler + m_CommandHandlerRegistry.RegisterFunctor(&m_PerJobCounterSelectionCommandHandler); } ~ProfilingService() = default; |