aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/IProfilingConnection.hpp
blob: 160a4fa31d4221bd429502fd20988ef52d8a3083 (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
32
33
34
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//

#pragma once

#include "Packet.hpp"

#include <cstdint>

namespace armnn
{

namespace profiling
{

class IProfilingConnection
{
public:
    virtual ~IProfilingConnection() {}

    virtual bool IsOpen() = 0;

    virtual void Close() =  0;

    virtual bool WritePacket(const char* buffer, uint32_t length) = 0;

    virtual Packet ReadPacket(uint32_t timeout) = 0;
};

} // namespace profiling

} // namespace armnn