diff options
Diffstat (limited to 'src/profiling/test/PrintPacketHeaderHandler.cpp')
-rw-r--r-- | src/profiling/test/PrintPacketHeaderHandler.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/profiling/test/PrintPacketHeaderHandler.cpp b/src/profiling/test/PrintPacketHeaderHandler.cpp new file mode 100644 index 0000000000..24095d8250 --- /dev/null +++ b/src/profiling/test/PrintPacketHeaderHandler.cpp @@ -0,0 +1,31 @@ +// +// Copyright © 2020 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#include "PrintPacketHeaderHandler.hpp" + +#include <iostream> + +namespace armnn +{ + +namespace profiling +{ + +std::vector<uint32_t> PrintPacketHeaderHandler::GetHeadersAccepted() +{ + return std::vector<uint32_t>(); +} + +void PrintPacketHeaderHandler::HandlePacket(const Packet& packet) +{ + std::stringstream ss; + ss << "Handler Received Outgoing Packet [" << packet.GetPacketFamily() << ":" << packet.GetPacketId() << "]"; + ss << " Length [" << packet.GetLength() << "]" << std::endl; + std::cout << ss.str() << std::endl; +}; + +} // namespace profiling + +} // namespace armnn
\ No newline at end of file |