aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/profiling/IProfilingGuidGenerator.hpp
diff options
context:
space:
mode:
authorColm Donelan <Colm.Donelan@arm.com>2020-01-24 16:27:02 +0000
committerColm Donelan <Colm.Donelan@arm.com>2020-01-28 12:01:42 +0000
commit5ccb33da0565e0bf2279318f1e7ad597afcc0367 (patch)
tree0266241d45ea8d0b0055c78ee0f28ee8cbc3a462 /include/armnn/profiling/IProfilingGuidGenerator.hpp
parent03b6b410321923bac7ed2eb1507f524953c9a464 (diff)
downloadarmnn-5ccb33da0565e0bf2279318f1e7ad597afcc0367.tar.gz
IVGCVSW-4316 Promote ISendTimelinePacket and IProfilingGuidGenerator
As part of IVGCVSW-4316 we need to expose ISendTimelinePacket and IProfilingGuidGenerator to enable them to be used by backends for profiling. This also required moving ProfilingRelationshipType from ProfilingUtils. Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: I58cc64e32ecfffa5231c9d2028522ed58d0ddf31
Diffstat (limited to 'include/armnn/profiling/IProfilingGuidGenerator.hpp')
-rw-r--r--include/armnn/profiling/IProfilingGuidGenerator.hpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/armnn/profiling/IProfilingGuidGenerator.hpp b/include/armnn/profiling/IProfilingGuidGenerator.hpp
new file mode 100644
index 0000000000..fb9f7401fb
--- /dev/null
+++ b/include/armnn/profiling/IProfilingGuidGenerator.hpp
@@ -0,0 +1,32 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include <armnn/Types.hpp>
+
+#include <string>
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+class IProfilingGuidGenerator
+{
+public:
+ /// Return the next random Guid in the sequence
+ virtual ProfilingDynamicGuid NextGuid() = 0;
+
+ /// Create a ProfilingStaticGuid based on a hash of the string
+ virtual ProfilingStaticGuid GenerateStaticId(const std::string& str) = 0;
+
+ virtual ~IProfilingGuidGenerator() {}
+};
+
+} // namespace profiling
+
+} // namespace armnn