Narumol Prangnawarat | 15effd8 | 2019-10-22 14:17:11 +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 ProfilingGuidGenerator |
| 17 | { |
| 18 | public: |
| 19 | /// Construct a generator with the default address space static/dynamic partitioning |
| 20 | ProfilingGuidGenerator() : m_Sequence(0) {} |
| 21 | |
| 22 | /// Return the next random Guid in the sequence |
| 23 | ProfilingDynamicGuid NextGuid(); |
| 24 | |
| 25 | /// Create a ProfilingStaticGuid based on a hash of the name |
| 26 | ProfilingStaticGuid GenerateStaticId(const char* name); |
| 27 | |
| 28 | private: |
| 29 | uint64_t m_Sequence; |
| 30 | }; |
| 31 | |
| 32 | } // namespace profiling |
| 33 | |
| 34 | } // namespace armnn |