IVGCVSW-3674 Create basic ProfileService class
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I5bed5196c256883fb704fe14b60bb8f7a77cc9df
diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp
new file mode 100644
index 0000000..33f1135
--- /dev/null
+++ b/src/profiling/ProfilingService.hpp
@@ -0,0 +1,39 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include "ProfilingStateMachine.hpp"
+#include "ProfilingConnectionFactory.hpp"
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+class ProfilingService
+{
+public:
+ ProfilingService(const Runtime::CreationOptions::ExternalProfilingOptions& options);
+ ~ProfilingService() = default;
+
+ void Run();
+
+ ProfilingState GetCurrentState() const;
+
+ // Options are public to allow profiling to be turned on at runtime
+ Runtime::CreationOptions::ExternalProfilingOptions m_Options;
+
+private:
+ void Initialise();
+
+ ProfilingStateMachine m_State;
+ ProfilingConnectionFactory m_Factory;
+};
+
+} // namespace profiling
+
+} // namespace armnn
\ No newline at end of file