diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2020-03-18 10:57:30 +0000 |
---|---|---|
committer | Sadik Armagan <sadik.armagan@arm.com> | 2020-03-18 15:48:21 +0000 |
commit | 3184c907b2420e6c66485529f336251b2b62aecf (patch) | |
tree | b79190007f80da9bb9d827efb714ce13a0ffb2bb /src/profiling/backends/BackendProfiling.cpp | |
parent | e6a2ccd09060ba93203ddc5a7f79260cedf2c147 (diff) | |
download | armnn-3184c907b2420e6c66485529f336251b2b62aecf.tar.gz |
IVGCVSW-4463 Change ProfilingService to a member of runtime from a singleton
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I345c39a10a4693a500aa1687d9a5cee76da791c3
Diffstat (limited to 'src/profiling/backends/BackendProfiling.cpp')
-rw-r--r-- | src/profiling/backends/BackendProfiling.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/profiling/backends/BackendProfiling.cpp b/src/profiling/backends/BackendProfiling.cpp index 0926879f67..4e6de93062 100644 --- a/src/profiling/backends/BackendProfiling.cpp +++ b/src/profiling/backends/BackendProfiling.cpp @@ -15,7 +15,8 @@ namespace profiling std::unique_ptr<IRegisterBackendCounters> BackendProfiling::GetCounterRegistrationInterface(uint16_t currentMaxGlobalCounterID) { - return std::make_unique<RegisterBackendCounters>(RegisterBackendCounters(currentMaxGlobalCounterID, m_BackendId)); + return std::make_unique<RegisterBackendCounters>( + RegisterBackendCounters(currentMaxGlobalCounterID, m_BackendId, m_ProfilingService)); } std::unique_ptr<ISendTimelinePacket> BackendProfiling::GetSendTimelinePacket() @@ -73,7 +74,7 @@ std::vector<CounterStatus> BackendProfiling::GetActiveCounters() for (auto globalCounterId : globalCounterIds) { // Get pair of local counterId and backendId using globalCounterId const std::pair<uint16_t, armnn::BackendId>& backendCounterIdPair = - ProfilingService::Instance().GetCounterMappings().GetBackendId(globalCounterId); + m_ProfilingService.GetCounterMappings().GetBackendId(globalCounterId); if (backendCounterIdPair.second == m_BackendId) { activeCounterIds.emplace_back(backendCounterIdPair.first, |