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