blob: 9b1aac5a4e1582dc95645775fc69cb7a9b91a2c1 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
//
// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "IProfilingService.hpp"
#include "ProfilingService.hpp"
namespace arm
{
namespace pipe
{
std::unique_ptr<IProfilingService> IProfilingService::CreateProfilingService(
armnn::Optional<IReportStructure&> reportStructure)
{
return std::make_unique<ProfilingService>(reportStructure);
}
ProfilingGuidGenerator IProfilingService::m_GuidGenerator;
ProfilingDynamicGuid IProfilingService::GetNextGuid()
{
return m_GuidGenerator.NextGuid();
}
ProfilingStaticGuid IProfilingService::GetStaticId(const std::string& str)
{
return m_GuidGenerator.GenerateStaticId(str);
}
void IProfilingService::ResetGuidGenerator()
{
m_GuidGenerator.Reset();
}
ProfilingDynamicGuid IProfilingService::NextGuid()
{
return IProfilingService::GetNextGuid();
}
ProfilingStaticGuid IProfilingService::GenerateStaticId(const std::string& str)
{
return IProfilingService::GetStaticId(str);
}
} // namespace pipe
} // namespace arm
|