aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/TimelinePacketWriterFactory.cpp
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2019-10-24 10:26:05 +0100
committerJim Flynn Arm <jim.flynn@arm.com>2019-10-24 10:06:40 +0000
commit7bbdf9db051f40377a284a28375816e60349376d (patch)
treedc7d8442cecb2f23ca2f93c8535316ed5207be69 /src/profiling/TimelinePacketWriterFactory.cpp
parenta87698211b6aaab38424865d200534d96f55dcf2 (diff)
downloadarmnn-7bbdf9db051f40377a284a28375816e60349376d.tar.gz
IVGCVSW-3950 Create SendTimelinePacket interface and class
* Implemented ISendTimelinePacket interface and its implementation SendTimelinePacket * Implemented TimelinePacketWriterFactory * Implemented unit tests for SendTimelinePacket functions Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I0a47586437f99510394d4d94589dccfb397d38e5
Diffstat (limited to 'src/profiling/TimelinePacketWriterFactory.cpp')
-rw-r--r--src/profiling/TimelinePacketWriterFactory.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/profiling/TimelinePacketWriterFactory.cpp b/src/profiling/TimelinePacketWriterFactory.cpp
new file mode 100644
index 0000000000..b1de629fae
--- /dev/null
+++ b/src/profiling/TimelinePacketWriterFactory.cpp
@@ -0,0 +1,23 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#include "TimelinePacketWriterFactory.hpp"
+
+#include "SendTimelinePacket.hpp"
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+std::unique_ptr<ISendTimelinePacket> TimelinePacketWriterFactory::GetSendTimelinePacket() const
+{
+ return std::make_unique<SendTimelinePacket>(m_BufferManager);
+}
+
+} // namespace profiling
+
+} // namespace armnn