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 | |
| 8 | #include "ProfilingGuid.hpp" |
| 9 | |
| 10 | namespace armnn |
| 11 | { |
| 12 | |
| 13 | namespace profiling |
| 14 | { |
| 15 | |
| 16 | class IProfilingGuidGenerator |
| 17 | { |
| 18 | public: |
| 19 | /// Return the next random Guid in the sequence |
| 20 | virtual ProfilingDynamicGuid NextGuid() = 0; |
| 21 | |
| 22 | /// Create a ProfilingStaticGuid based on a hash of the string |
| 23 | virtual ProfilingStaticGuid GenerateStaticId(const std::string& str) = 0; |
| 24 | |
| 25 | virtual ~IProfilingGuidGenerator() {} |
| 26 | }; |
| 27 | |
| 28 | } // namespace profiling |
| 29 | |
| 30 | } // namespace armnn |