aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/TimelinePacketWriterFactory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/TimelinePacketWriterFactory.hpp')
-rw-r--r--src/profiling/TimelinePacketWriterFactory.hpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/profiling/TimelinePacketWriterFactory.hpp b/src/profiling/TimelinePacketWriterFactory.hpp
new file mode 100644
index 0000000000..1bbd3fd60f
--- /dev/null
+++ b/src/profiling/TimelinePacketWriterFactory.hpp
@@ -0,0 +1,32 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include "IBufferManager.hpp"
+#include "ISendTimelinePacket.hpp"
+
+#include <memory>
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+class TimelinePacketWriterFactory
+{
+public:
+ TimelinePacketWriterFactory(IBufferManager& bufferManager) : m_BufferManager(bufferManager) {}
+
+ std::unique_ptr<ISendTimelinePacket> GetSendTimelinePacket() const;
+
+private:
+ IBufferManager& m_BufferManager;
+};
+
+} // namespace profiling
+
+} // namespace armnn