IVGCVSW-3437 Add Request Counter Directory Command Handler
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I56ef68d6fe993d271a0fc43467f2a63cdcaee496
diff --git a/src/profiling/RequestCounterDirectoryCommandHandler.cpp b/src/profiling/RequestCounterDirectoryCommandHandler.cpp
new file mode 100644
index 0000000..f186add
--- /dev/null
+++ b/src/profiling/RequestCounterDirectoryCommandHandler.cpp
@@ -0,0 +1,24 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#include "RequestCounterDirectoryCommandHandler.hpp"
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+void RequestCounterDirectoryCommandHandler::operator()(const Packet& packet)
+{
+ BOOST_ASSERT(packet.GetLength() == 0);
+
+ // Write packet to Counter Stream Buffer
+ m_SendCounterPacket.SendCounterDirectoryPacket(m_CounterDirectory);
+}
+
+} // namespace profiling
+
+} // namespace armnn
\ No newline at end of file