Jim Flynn | 00f3aaf | 2019-10-24 11:58:06 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2019 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
janeil01 | c4946c7 | 2019-11-07 09:32:28 +0000 | [diff] [blame] | 8 | #include <armnn/Types.hpp> |
Jim Flynn | 00f3aaf | 2019-10-24 11:58:06 +0100 | [diff] [blame] | 9 | |
Jim Flynn | ab84575 | 2019-10-25 13:17:30 +0100 | [diff] [blame] | 10 | #include <string> |
| 11 | |
Jim Flynn | 00f3aaf | 2019-10-24 11:58:06 +0100 | [diff] [blame] | 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | namespace profiling |
| 16 | { |
| 17 | |
| 18 | class IProfilingGuidGenerator |
| 19 | { |
| 20 | public: |
| 21 | /// Return the next random Guid in the sequence |
| 22 | virtual ProfilingDynamicGuid NextGuid() = 0; |
| 23 | |
| 24 | /// Create a ProfilingStaticGuid based on a hash of the string |
| 25 | virtual ProfilingStaticGuid GenerateStaticId(const std::string& str) = 0; |
| 26 | |
| 27 | virtual ~IProfilingGuidGenerator() {} |
Jim Flynn | 6b1bf1a | 2020-01-22 15:18:49 +0000 | [diff] [blame] | 28 | |
| 29 | static IProfilingGuidGenerator& Instance(); |
Jim Flynn | 00f3aaf | 2019-10-24 11:58:06 +0100 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | } // namespace profiling |
| 33 | |
| 34 | } // namespace armnn |