ArmNN
 20.05
PrintPacketHeaderHandler.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include <iostream>
9 
10 namespace armnn
11 {
12 
13 namespace profiling
14 {
15 
16 std::vector<uint32_t> PrintPacketHeaderHandler::GetHeadersAccepted()
17 {
18  return std::vector<uint32_t>();
19 }
20 
21 void PrintPacketHeaderHandler::HandlePacket(const Packet& packet)
22 {
23  std::stringstream ss;
24  ss << "Handler Received Outgoing Packet [" << packet.GetPacketFamily() << ":" << packet.GetPacketId() << "]";
25  ss << " Length [" << packet.GetLength() << "]" << std::endl;
26  std::cout << ss.str() << std::endl;
27 };
28 
29 } // namespace profiling
30 
31 } // namespace armnn
Copyright (c) 2020 ARM Limited.