xref: /aosp_15_r20/external/armnn/src/profiling/test/PrintPacketHeaderHandler.cpp (revision 89c4ff92f2867872bb9e2354d150bf0c8c502810)
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "PrintPacketHeaderHandler.hpp"
7 
8 #include <iostream>
9 #include <sstream>
10 
11 namespace arm
12 {
13 
14 namespace pipe
15 {
16 
GetHeadersAccepted()17 std::vector<uint32_t> PrintPacketHeaderHandler::GetHeadersAccepted()
18 {
19     return std::vector<uint32_t>();
20 }
21 
HandlePacket(const arm::pipe::Packet & packet)22 void PrintPacketHeaderHandler::HandlePacket(const arm::pipe::Packet& packet)
23 {
24     std::stringstream ss;
25     ss << "Handler Received Outgoing Packet [" << packet.GetPacketFamily() << ":" << packet.GetPacketId() << "]";
26     ss << " Length [" << packet.GetLength() << "]" << std::endl;
27     std::cout << ss.str() << std::endl;
28 };
29 
30 } // namespace pipe
31 
32 } // namespace arm