ArmNN
 20.05
IProfilingConnection.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <Packet.hpp>
10 
11 #include <cstdint>
12 
13 namespace armnn
14 {
15 
16 namespace profiling
17 {
18 
20 {
21 public:
22  virtual ~IProfilingConnection() {}
23 
24  virtual bool IsOpen() const = 0;
25 
26  virtual void Close() = 0;
27 
28  virtual bool WritePacket(const unsigned char* buffer, uint32_t length) = 0;
29 
30  virtual Packet ReadPacket(uint32_t timeout) = 0;
31 };
32 
33 } // namespace profiling
34 
35 } // namespace armnn
Copyright (c) 2020 ARM Limited.
virtual Packet ReadPacket(uint32_t timeout)=0
virtual bool WritePacket(const unsigned char *buffer, uint32_t length)=0