aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/PrintPacketHeaderHandler.cpp
blob: 24095d8250141237e5b418527c00ecdbe092d442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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