aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/TimelineUtilityMethods.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-10-22 11:07:45 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-10-25 16:07:45 +0000
commit830101c2debac8b3f22c048fad603f34b76bdca1 (patch)
treef398bcbd687503a79fcced3e34f0411f5864f94a /src/profiling/TimelineUtilityMethods.hpp
parent48623a0f6f4681ce0d9525b1587b7f96bfd58519 (diff)
downloadarmnn-830101c2debac8b3f22c048fad603f34b76bdca1.tar.gz
IVGCVSW-4022 Create a DeclareLabel utility function
* Created new TimelineUtilityMethods class * Created the DeclareLabel utility methods inside the new class * Added unit tests Change-Id: Ife0f7853a556d48206b76baeb3934344a990bee9 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/profiling/TimelineUtilityMethods.hpp')
-rw-r--r--src/profiling/TimelineUtilityMethods.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/profiling/TimelineUtilityMethods.hpp b/src/profiling/TimelineUtilityMethods.hpp
new file mode 100644
index 0000000000..22727c8b9a
--- /dev/null
+++ b/src/profiling/TimelineUtilityMethods.hpp
@@ -0,0 +1,33 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include "ISendTimelinePacket.hpp"
+#include "ProfilingGuid.hpp"
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+class TimelineUtilityMethods
+{
+public:
+ TimelineUtilityMethods(ISendTimelinePacket& sendTimelinePacket)
+ : m_SendTimelinePacket(sendTimelinePacket)
+ {}
+ ~TimelineUtilityMethods() = default;
+
+ ProfilingStaticGuid DeclareLabel(const std::string& labelName);
+
+private:
+ ISendTimelinePacket& m_SendTimelinePacket;
+};
+
+} // namespace profiling
+
+} // namespace armnn