blob: 7c43cab67b58409bc2abaeb19e387eb4207c960c [file] [log] [blame]
Narumol Prangnawarat15effd82019-10-22 14:17:11 +01001//
2// Copyright © 2019 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include "ProfilingGuid.hpp"
9
10namespace armnn
11{
12
13namespace profiling
14{
15
16class ProfilingGuidGenerator
17{
18public:
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
28private:
29 uint64_t m_Sequence;
30};
31
32} // namespace profiling
33
34} // namespace armnn