diff options
author | Jim Flynn <jim.flynn@arm.com> | 2020-03-29 17:48:26 +0100 |
---|---|---|
committer | finn.williams <finn.williams@arm.com> | 2020-04-27 16:38:55 +0000 |
commit | 4e755a50e35a1f5ac1b011dc4baf89e6d97f116e (patch) | |
tree | 9660dba96819145e4f1bfe34e4482dca211ffc26 /src/profiling/NullProfilingConnection.hpp | |
parent | 303980c502c721f13d65e7087be6c0758df65044 (diff) | |
download | armnn-4e755a50e35a1f5ac1b011dc4baf89e6d97f116e.tar.gz |
IVGCVSW-4595 Add IFileOnlyPacketHandlers to file only profiling connection
Change-Id: Ib49a8cbbf323da4109cdab9750e6c4d276e484b7
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/NullProfilingConnection.hpp')
-rw-r--r-- | src/profiling/NullProfilingConnection.hpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/profiling/NullProfilingConnection.hpp b/src/profiling/NullProfilingConnection.hpp new file mode 100644 index 0000000000..a72d7bfb82 --- /dev/null +++ b/src/profiling/NullProfilingConnection.hpp @@ -0,0 +1,41 @@ +// +// Copyright © 2020 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "IProfilingConnection.hpp" + +#include <armnn/utility/IgnoreUnused.hpp> + +namespace armnn +{ + +namespace profiling +{ + +class NullProfilingConnection : public IProfilingConnection +{ + virtual bool IsOpen() const override { return true; }; + + virtual void Close() override {}; + + virtual bool WritePacket(const unsigned char* buffer, uint32_t length) override + { + armnn::IgnoreUnused(buffer); + armnn::IgnoreUnused(length); + return true; + }; + + virtual Packet ReadPacket(uint32_t timeout) override + { + armnn::IgnoreUnused(timeout); + return Packet(0); + } + +}; + +} // namespace profiling + +} // namespace armnn
\ No newline at end of file |