ArmNN
 21.02
PrintPacketHeaderHandler.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include <iostream>
9 #include <sstream>
10 
11 namespace armnn
12 {
13 
14 namespace profiling
15 {
16 
17 std::vector<uint32_t> PrintPacketHeaderHandler::GetHeadersAccepted()
18 {
19  return std::vector<uint32_t>();
20 }
21 
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 profiling
31 
32 } // namespace armnn
Copyright (c) 2021 ARM Limited and Contributors.