IVGCVSW-4400 Adding invocation of the back to Profiling Service initialisation

Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I5f3bb4c9cde1cca11b8f6201ab559c2960eb32c0
diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp
index 3540fc4..5edb2b4 100644
--- a/src/profiling/ProfilingService.cpp
+++ b/src/profiling/ProfilingService.cpp
@@ -369,6 +369,13 @@
         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)