blob: a49122a7a1555f996b127c833694ede7df422359 [file] [log] [blame]
Colm Donelan1aff3932020-02-05 17:48:59 +00001//
2// Copyright © 2020 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#include "BackendProfiling.hpp"
7#include "RegisterBackendCounters.hpp"
8
9namespace armnn
10{
11
12namespace profiling
13{
14
15std::unique_ptr<IRegisterBackendCounters>
16 BackendProfiling::GetCounterRegistrationInterface(uint16_t currentMaxGlobalCounterID)
17{
18 return std::make_unique<RegisterBackendCounters>(RegisterBackendCounters(currentMaxGlobalCounterID, m_backendId));
19}
20
21std::unique_ptr<ISendTimelinePacket> BackendProfiling::GetSendTimelinePacket()
22{
23 return m_ProfilingService.GetSendTimelinePacket();
24}
25
26IProfilingGuidGenerator& BackendProfiling::GetProfilingGuidGenerator()
27{
28 // The profiling service is our Guid Generator.
29 return m_ProfilingService;
30}
31
32CounterStatus BackendProfiling::GetCounterStatus(uint16_t)
33{
34 return CounterStatus();
35}
36
37std::vector<CounterStatus> BackendProfiling::GetActiveCounters()
38{
39 return std::vector<CounterStatus>();
40}
41
42bool BackendProfiling::IsProfilingEnabled() const
43{
44 return m_ProfilingService.IsProfilingEnabled();
45}
46
47} // namespace profiling
48} // namespace armnn