20.11
NullProfilingConnection.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2020 Arm Ltd. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#pragma once
7
8
#include "
IProfilingConnection.hpp
"
9
10
#include <
armnn/utility/IgnoreUnused.hpp
>
11
12
namespace
armnn
13
{
14
15
namespace
profiling
16
{
17
18
class
NullProfilingConnection
:
public
IProfilingConnection
19
{
20
virtual
bool
IsOpen()
const override
{
return
true
; };
21
22
virtual
void
Close()
override
{};
23
24
virtual
bool
WritePacket(
const
unsigned
char
* buffer, uint32_t length)
override
25
{
26
armnn::IgnoreUnused
(buffer);
27
armnn::IgnoreUnused
(length);
28
return
true
;
29
};
30
31
virtual
Packet ReadPacket(uint32_t timeout)
override
32
{
33
armnn::IgnoreUnused
(timeout);
34
return
Packet(0);
35
}
36
37
};
38
39
}
// namespace profiling
40
41
}
// namespace armnn
IgnoreUnused.hpp
armnn::profiling::NullProfilingConnection
Definition:
NullProfilingConnection.hpp:18
armnn
Copyright (c) 2020 ARM Limited.
Definition:
00_introduction.dox:25
armnn::IgnoreUnused
void IgnoreUnused(Ts &&...)
Definition:
IgnoreUnused.hpp:14
armnn::profiling::IProfilingConnection
Definition:
IProfilingConnection.hpp:20
IProfilingConnection.hpp
src
profiling
NullProfilingConnection.hpp
Generated on Wed Nov 25 2020 09:59:14 for ArmNN by
1.8.13