diff options
author | Nikhil Raj <nikhil.raj@arm.com> | 2021-06-08 12:31:50 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2021-06-08 16:04:14 +0100 |
commit | 5b1bcc93820b442bc4035c1e030a8d4a0983df91 (patch) | |
tree | 42b8cc8bcbd656ed9ac01fa18232867fce9959b3 /profiling/common/include/IProfilingGuidGenerator.hpp | |
parent | 400c593e03af3cc9131058b3cb30b787586f69a3 (diff) | |
download | armnn-5b1bcc93820b442bc4035c1e030a8d4a0983df91.tar.gz |
IVGCVSW-5834 Move the IProfilingGuidGenerator and ProfilingGuidGenerator into profiling common
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: I0d672cc782cc2de66a88acf0d83fcd40208ace95
Diffstat (limited to 'profiling/common/include/IProfilingGuidGenerator.hpp')
-rw-r--r-- | profiling/common/include/IProfilingGuidGenerator.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/profiling/common/include/IProfilingGuidGenerator.hpp b/profiling/common/include/IProfilingGuidGenerator.hpp new file mode 100644 index 0000000000..34ee9673b5 --- /dev/null +++ b/profiling/common/include/IProfilingGuidGenerator.hpp @@ -0,0 +1,32 @@ +// +// Copyright © 2019 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "ProfilingGuid.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 |