aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/IProfilingConnectionFactory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/IProfilingConnectionFactory.hpp')
-rw-r--r--src/profiling/IProfilingConnectionFactory.hpp33
1 files changed, 33 insertions, 0 deletions
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 <Runtime.hpp>
+
+#include <memory>
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+class IProfilingConnectionFactory
+{
+public:
+ using ExternalProfilingOptions = Runtime::CreationOptions::ExternalProfilingOptions;
+ using IProfilingConnectionPtr = std::unique_ptr<IProfilingConnection>;
+
+ virtual ~IProfilingConnectionFactory() {}
+
+ virtual IProfilingConnectionPtr GetProfilingConnection(const ExternalProfilingOptions& options) const = 0;
+};
+
+} // namespace profiling
+
+} // namespace armnn