aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/src/IProfilingConnectionFactory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'profiling/client/src/IProfilingConnectionFactory.hpp')
-rw-r--r--profiling/client/src/IProfilingConnectionFactory.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/profiling/client/src/IProfilingConnectionFactory.hpp b/profiling/client/src/IProfilingConnectionFactory.hpp
new file mode 100644
index 0000000000..8676077878
--- /dev/null
+++ b/profiling/client/src/IProfilingConnectionFactory.hpp
@@ -0,0 +1,33 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include "IProfilingConnection.hpp"
+
+#include <client/include/ProfilingOptions.hpp>
+
+#include <memory>
+
+namespace arm
+{
+
+namespace pipe
+{
+
+class IProfilingConnectionFactory
+{
+public:
+ using ExternalProfilingOptions = ProfilingOptions;
+ using IProfilingConnectionPtr = std::unique_ptr<IProfilingConnection>;
+
+ virtual ~IProfilingConnectionFactory() {}
+
+ virtual IProfilingConnectionPtr GetProfilingConnection(const ProfilingOptions& options) const = 0;
+};
+
+} // namespace pipe
+
+} // namespace arm