From 54fb957c9640d61ab575d7acfc4c430a15123315 Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Wed, 2 Oct 2019 12:50:57 +0100 Subject: IVGCVSW-3937 Add the necessary components to the ProfilingService class to process a connection to an external profiling service (e.g. gatord) * Added the required components (CommandHandlerRegistry, CommandHandler, SendCounterPacket, ...) to the ProfilingService class * Reworked the ProfilingService::Run procedure and renamed it to Update * Handling all states but Active in the Run method (future work) * Updated the unit and tests accordingly * Added component tests to check that the Connection Acknowledged packet is handled correctly * Added test util classes, made the default constructor/destructor protected to superclass a ProfilingService object * Added IProfilingConnectionFactory interface Signed-off-by: Matteo Martincigh Change-Id: I010d94b18980c9e6394253f4b2bbe4fe5bb3fe4f --- src/profiling/IProfilingConnectionFactory.hpp | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/profiling/IProfilingConnectionFactory.hpp (limited to 'src/profiling/IProfilingConnectionFactory.hpp') diff --git a/src/profiling/IProfilingConnectionFactory.hpp b/src/profiling/IProfilingConnectionFactory.hpp new file mode 100644 index 0000000000..173421092e --- /dev/null +++ b/src/profiling/IProfilingConnectionFactory.hpp @@ -0,0 +1,33 @@ +// +// Copyright © 2019 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "IProfilingConnection.hpp" + +#include + +#include + +namespace armnn +{ + +namespace profiling +{ + +class IProfilingConnectionFactory +{ +public: + using ExternalProfilingOptions = Runtime::CreationOptions::ExternalProfilingOptions; + using IProfilingConnectionPtr = std::unique_ptr; + + virtual ~IProfilingConnectionFactory() {} + + virtual IProfilingConnectionPtr GetProfilingConnection(const ExternalProfilingOptions& options) const = 0; +}; + +} // namespace profiling + +} // namespace armnn -- cgit v1.2.1