From 6b1bf1a40bebf4cc108d39f8b8e0c29bdfc51ce1 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Wed, 22 Jan 2020 15:18:49 +0000 Subject: IVGCVSW-4156 Remove backend dependency on ProfilingService.hpp Change-Id: I3b18ede85408bdfbc5147396e183e87bdabd3754 Signed-off-by: Jim Flynn --- include/armnn/IProfilingGuidGenerator.hpp | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 include/armnn/IProfilingGuidGenerator.hpp (limited to 'include/armnn/IProfilingGuidGenerator.hpp') 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 + +#include + +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 -- cgit v1.2.1