aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/PerJobCounterSelectionCommandHandler.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-10-11 17:19:56 +0100
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>2019-10-14 16:06:26 +0100
commit994b5349180b41849ee616fa4f0d3b94a928f48f (patch)
tree9e204588e3d6e997b46bd83ec935a33e32941e9c /src/profiling/PerJobCounterSelectionCommandHandler.hpp
parent53e469915bc6552c0d79cb6461512c7c1168ee2d (diff)
downloadarmnn-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/PerJobCounterSelectionCommandHandler.hpp')
-rw-r--r--src/profiling/PerJobCounterSelectionCommandHandler.hpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/profiling/PerJobCounterSelectionCommandHandler.hpp b/src/profiling/PerJobCounterSelectionCommandHandler.hpp
new file mode 100644
index 0000000000..6caa08d68e
--- /dev/null
+++ b/src/profiling/PerJobCounterSelectionCommandHandler.hpp
@@ -0,0 +1,38 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include "Packet.hpp"
+#include "CommandHandlerFunctor.hpp"
+#include "ProfilingStateMachine.hpp"
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+class PerJobCounterSelectionCommandHandler : public CommandHandlerFunctor
+{
+
+public:
+ PerJobCounterSelectionCommandHandler(uint32_t packetId,
+ uint32_t version,
+ const ProfilingStateMachine& profilingStateMachine)
+ : CommandHandlerFunctor(packetId, version)
+ , m_StateMachine(profilingStateMachine)
+ {}
+
+ void operator()(const Packet& packet) override;
+
+private:
+ const ProfilingStateMachine& m_StateMachine;
+};
+
+} // namespace profiling
+
+} // namespace armnn
+