diff options
author | David Monahan <david.monahan@arm.com> | 2020-02-07 12:01:05 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-02-10 11:14:47 +0000 |
commit | a3fb2b964a2c92fda969f16d6b99468daba2b9a7 (patch) | |
tree | 84c7383645b6708f1e116540483e8ba45d566492 /src/profiling | |
parent | 2dcd3fef30ad3ac41621f3f8b142632e912ea42d (diff) | |
download | armnn-a3fb2b964a2c92fda969f16d6b99468daba2b9a7.tar.gz |
IVGCVSW-4400 Adding invocation of the back to Profiling Service initialisation
Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I5f3bb4c9cde1cca11b8f6201ab559c2960eb32c0
Diffstat (limited to 'src/profiling')
-rw-r--r-- | src/profiling/ProfilingService.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp index 3540fc43e0..5edb2b4026 100644 --- a/src/profiling/ProfilingService.cpp +++ b/src/profiling/ProfilingService.cpp @@ -369,6 +369,13 @@ void ProfilingService::Initialize() BOOST_ASSERT(inferencesRunCounter); InitializeCounterValue(inferencesRunCounter->m_Uid); } + // Register the backend counters + uint16_t maxGlobalCounterId = armnn::profiling::INFERENCES_RUN; + for (auto&& profilingContext : m_BackendProfilingContexts) + { + BOOST_ASSERT(profilingContext.second != nullptr); + maxGlobalCounterId = profilingContext.second->RegisterCounters(maxGlobalCounterId); + } } void ProfilingService::InitializeCounterValue(uint16_t counterUid) |