diff options
author | Jim Flynn <jim.flynn@arm.com> | 2020-01-22 15:18:49 +0000 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2020-01-23 15:55:02 +0000 |
commit | 6b1bf1a40bebf4cc108d39f8b8e0c29bdfc51ce1 (patch) | |
tree | bd3ed8cfa0f04ea619beb5e4380051f8c051a6e9 /include | |
parent | 2210a5334bbd7d09f11db08a2a7a941a088a0f61 (diff) | |
download | armnn-branches/armnn_19_11.tar.gz |
IVGCVSW-4156 Remove backend dependency on ProfilingService.hppv19.11.1branches/armnn_19_11
Change-Id: I3b18ede85408bdfbc5147396e183e87bdabd3754
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/armnn/IProfilingGuidGenerator.hpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/armnn/IProfilingGuidGenerator.hpp b/include/armnn/IProfilingGuidGenerator.hpp new file mode 100644 index 0000000000..4dcc6cddc0 --- /dev/null +++ b/include/armnn/IProfilingGuidGenerator.hpp @@ -0,0 +1,34 @@ +// +// 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() {} + + static IProfilingGuidGenerator& Instance(); +}; + +} // namespace profiling + +} // namespace armnn |