From 480336906137587d020da987039cfd20ee4cc3a5 Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Fri, 20 Sep 2019 12:04:55 +0100 Subject: IVGCVSW-3437 Add Request Counter Directory Command Handler Signed-off-by: Narumol Prangnawarat Change-Id: I56ef68d6fe993d271a0fc43467f2a63cdcaee496 --- .../RequestCounterDirectoryCommandHandler.cpp | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/profiling/RequestCounterDirectoryCommandHandler.cpp (limited to 'src/profiling/RequestCounterDirectoryCommandHandler.cpp') diff --git a/src/profiling/RequestCounterDirectoryCommandHandler.cpp b/src/profiling/RequestCounterDirectoryCommandHandler.cpp new file mode 100644 index 0000000000..f186add357 --- /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 -- cgit v1.2.1