aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/LabelsAndEventClasses.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2019-10-25 13:17:30 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-10-28 16:29:22 +0000
commitab84575629b4836ce592ea77831225ce5bbe676f (patch)
treea756383845ba3a936699adae858b88896f96feed /src/profiling/LabelsAndEventClasses.hpp
parentd6f26fc022defe1f6220bb6e2874fefc9a4c0cba (diff)
downloadarmnn-ab84575629b4836ce592ea77831225ce5bbe676f.tar.gz
IVGCVSW-4031 Provide well known profiling GUIDs
Change-Id: Ibf99b025f51503e8937012b655aad74698f32e38 Signed-off-by: Jim Flynn <jim.flynn@arm.com> Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/profiling/LabelsAndEventClasses.hpp')
-rw-r--r--src/profiling/LabelsAndEventClasses.hpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/profiling/LabelsAndEventClasses.hpp b/src/profiling/LabelsAndEventClasses.hpp
new file mode 100644
index 0000000000..07aeb81099
--- /dev/null
+++ b/src/profiling/LabelsAndEventClasses.hpp
@@ -0,0 +1,38 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include "ProfilingGuid.hpp"
+#include "ProfilingGuidGenerator.hpp"
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+class LabelsAndEventClasses
+{
+public:
+ // Labels (string value + GUID)
+ static std::string NAME_LABEL;
+ static std::string TYPE_LABEL;
+ static std::string INDEX_LABEL;
+ static ProfilingStaticGuid NAME_GUID;
+ static ProfilingStaticGuid TYPE_GUID;
+ static ProfilingStaticGuid INDEX_GUID;
+
+ // Event Class GUIDs
+ static ProfilingStaticGuid ARMNN_PROFILING_SOL_EVENT_CLASS;
+ static ProfilingStaticGuid ARMNN_PROFILING_EOL_EVENT_CLASS;
+
+private:
+ static ProfilingGuidGenerator m_GuidGenerator;
+};
+
+} // namespace profiling
+
+} // namespace armnn