diff options
Diffstat (limited to 'src/profiling/IProfilingGuidGenerator.hpp')
-rw-r--r-- | src/profiling/IProfilingGuidGenerator.hpp | 30 |
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 |