diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-20 21:52:17 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-23 20:32:03 +0000 |
commit | 277618302d0f131eac0b6ac2015dd3eb09aa6ff9 (patch) | |
tree | e468fa1362640484b508812596fb5c1b62186882 /include/armnn/profiling/ILocalPacketHandler.hpp | |
parent | a3bc0b4976395226c0fa0898b26098c4534edbdb (diff) | |
download | armnn-277618302d0f131eac0b6ac2015dd3eb09aa6ff9.tar.gz |
IVGCVSW-6706 Move headers to profiling/client/include
!android-nn-driver:7337
Change-Id: Ide401623829cc99fb9b51e9bbce3482ce706a8dd
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'include/armnn/profiling/ILocalPacketHandler.hpp')
-rw-r--r-- | include/armnn/profiling/ILocalPacketHandler.hpp | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/include/armnn/profiling/ILocalPacketHandler.hpp b/include/armnn/profiling/ILocalPacketHandler.hpp deleted file mode 100644 index bf7bdbc5c4..0000000000 --- a/include/armnn/profiling/ILocalPacketHandler.hpp +++ /dev/null @@ -1,66 +0,0 @@ -// -// Copyright © 2020 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#pragma once - - -#include <armnn/utility/IgnoreUnused.hpp> -#include "../../../profiling/common/include/TargetEndianess.hpp" - -#include <cstdint> -#include <memory> -#include <vector> - -// forward declare to prevent a circular dependency -namespace arm -{ -namespace pipe -{ - -class Packet; - -// the handlers need to be able to do two -// things to service the FileOnlyProfilingConnection -// and any other implementation of IProfilingConnection -// set the endianness and write a packet back i.e. -// return a packet and close the connection -class IInternalProfilingConnection -{ -public: - virtual ~IInternalProfilingConnection() {}; - - virtual void SetEndianess(const TargetEndianness& endianness) = 0; - - virtual void ReturnPacket(Packet& packet) = 0; - - virtual void Close() = 0; -}; - -class ILocalPacketHandler -{ -public: - virtual ~ILocalPacketHandler() {}; - - /// @return lists the headers of the packets that this handler accepts - /// only these packets will get sent to this handler. - /// If this function returns an empty list then ALL packets - /// will be sent to the PacketHandler i.e. a universal handler. - virtual std::vector<uint32_t> GetHeadersAccepted() = 0; - - /// process the packet - virtual void HandlePacket(const Packet& packet) = 0; - - /// Set a profiling connection on the handler. Only need to implement this - /// function if the handler will be writing data back to the profiled application. - virtual void SetConnection(IInternalProfilingConnection* profilingConnection) - {armnn::IgnoreUnused(profilingConnection);} -}; - -using ILocalPacketHandlerPtr = std::unique_ptr<ILocalPacketHandler>; -using ILocalPacketHandlerSharedPtr = std::shared_ptr<ILocalPacketHandler>; - -} // namespace pipe - -} // namespace arm
\ No newline at end of file |