diff options
author | Jim Flynn <jim.flynn@arm.com> | 2019-10-24 11:58:06 +0100 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2019-10-25 11:27:29 +0100 |
commit | 00f3aaf282c53b47f4cebfa4b29d7039da883bc1 (patch) | |
tree | 6ac1bf62f5c0cc442ddc77800ef44346185df16e /src/profiling/ProfilingGuidGenerator.hpp | |
parent | c975f9295e076febd4ecd45c9174d54f7327b3cc (diff) | |
download | armnn-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/ProfilingGuidGenerator.hpp')
-rw-r--r-- | src/profiling/ProfilingGuidGenerator.hpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/profiling/ProfilingGuidGenerator.hpp b/src/profiling/ProfilingGuidGenerator.hpp index 7c43cab67b..ff27c8ebe7 100644 --- a/src/profiling/ProfilingGuidGenerator.hpp +++ b/src/profiling/ProfilingGuidGenerator.hpp @@ -5,7 +5,7 @@ #pragma once -#include "ProfilingGuid.hpp" +#include "IProfilingGuidGenerator.hpp" namespace armnn { @@ -13,20 +13,21 @@ namespace armnn namespace profiling { -class ProfilingGuidGenerator +class ProfilingGuidGenerator : public IProfilingGuidGenerator { public: /// Construct a generator with the default address space static/dynamic partitioning - ProfilingGuidGenerator() : m_Sequence(0) {} + ProfilingGuidGenerator() {} /// Return the next random Guid in the sequence - ProfilingDynamicGuid NextGuid(); + // NOTE: dummy implementation for the moment + inline ProfilingDynamicGuid NextGuid() override { return ProfilingDynamicGuid(0); } - /// Create a ProfilingStaticGuid based on a hash of the name - ProfilingStaticGuid GenerateStaticId(const char* name); + /// Create a ProfilingStaticGuid based on a hash of the string + // NOTE: dummy implementation for the moment + inline ProfilingStaticGuid GenerateStaticId(const std::string& str) override { return ProfilingStaticGuid(0); } private: - uint64_t m_Sequence; }; } // namespace profiling |