blob: 7c43cab67b58409bc2abaeb19e387eb4207c960c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//
// Copyright © 2019 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "ProfilingGuid.hpp"
namespace armnn
{
namespace profiling
{
class ProfilingGuidGenerator
{
public:
/// Construct a generator with the default address space static/dynamic partitioning
ProfilingGuidGenerator() : m_Sequence(0) {}
/// Return the next random Guid in the sequence
ProfilingDynamicGuid NextGuid();
/// Create a ProfilingStaticGuid based on a hash of the name
ProfilingStaticGuid GenerateStaticId(const char* name);
private:
uint64_t m_Sequence;
};
} // namespace profiling
} // namespace armnn
|