aboutsummaryrefslogtreecommitdiff
path: root/tests/profiling/gatordmock/StubCommandHandler.hpp
diff options
context:
space:
mode:
authorFinn Williams <Finn.Williams@arm.com>2020-04-23 17:55:18 +0100
committerJim Flynn <jim.flynn@arm.com>2020-04-27 09:06:24 +0000
commitd7fcafaaaa917db458be362060e1b7855cad8083 (patch)
tree534e2898f2a7dd39a22bca8a073b085d8a7b7f80 /tests/profiling/gatordmock/StubCommandHandler.hpp
parent8e84398b8eb4b2a2a558803f4c6359f6b255d49f (diff)
downloadarmnn-d7fcafaaaa917db458be362060e1b7855cad8083.tar.gz
IVGCVSW-4722 Add missing m_TimelineEnabled bool to ConnectionAcknowledgedCommandHandler
* Added timeline bool to ConnectionAcknowledgedCommandHandler * Added option to enable timeline profiling in ExecuteNetwork * Added CommandHandler stub to allow gatordMock to ignore packets Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I314f9411e0079cba8f103d3b8a89f2bf38bb21ab
Diffstat (limited to 'tests/profiling/gatordmock/StubCommandHandler.hpp')
-rw-r--r--tests/profiling/gatordmock/StubCommandHandler.hpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/profiling/gatordmock/StubCommandHandler.hpp b/tests/profiling/gatordmock/StubCommandHandler.hpp
new file mode 100644
index 0000000000..450f90fd2b
--- /dev/null
+++ b/tests/profiling/gatordmock/StubCommandHandler.hpp
@@ -0,0 +1,42 @@
+//
+// Copyright © 2020 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+#pragma once
+
+#include <CommandHandlerFunctor.hpp>
+#include <armnn/utility/IgnoreUnused.hpp>
+
+#include <vector>
+
+namespace armnn
+{
+
+namespace gatordmock
+{
+
+class StubCommandHandler : public profiling::CommandHandlerFunctor
+{
+
+public:
+ /**
+ *
+ * @param packetId The id of packets this handler will process.
+ * @param version The version of that id.
+ */
+ StubCommandHandler(uint32_t familyId,
+ uint32_t packetId,
+ uint32_t version)
+ : CommandHandlerFunctor(familyId, packetId, version)
+ {}
+
+ void operator()(const armnn::profiling::Packet& packet) override
+ {
+ //No op
+ IgnoreUnused(packet);
+ }
+
+};
+
+} // namespace gatordmock
+} // namespace armnn