aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/IProfilingGuidGenerator.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2019-10-24 11:58:06 +0100
committerJim Flynn <jim.flynn@arm.com>2019-10-25 11:27:29 +0100
commit00f3aaf282c53b47f4cebfa4b29d7039da883bc1 (patch)
tree6ac1bf62f5c0cc442ddc77800ef44346185df16e /src/profiling/IProfilingGuidGenerator.hpp
parentc975f9295e076febd4ecd45c9174d54f7327b3cc (diff)
downloadarmnn-00f3aaf282c53b47f4cebfa4b29d7039da883bc1.tar.gz
IVGCVSW-4027 Add the IProfilingGuidGenerator interface
Change-Id: Idfb80d73171aa2b57d4dcf01dc137817cf19d2bd Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/IProfilingGuidGenerator.hpp')
-rw-r--r--src/profiling/IProfilingGuidGenerator.hpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/profiling/IProfilingGuidGenerator.hpp b/src/profiling/IProfilingGuidGenerator.hpp
new file mode 100644
index 0000000000..96e1792146
--- /dev/null
+++ b/src/profiling/IProfilingGuidGenerator.hpp
@@ -0,0 +1,30 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include "ProfilingGuid.hpp"
+
+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