From 45a736263e117b484528e6dee05c549beae721b4 Mon Sep 17 00:00:00 2001 From: Finn Williams Date: Fri, 15 May 2020 18:41:05 +0100 Subject: IVGCVSW-4834 Add calls to increment REGISTERED_BACKENDS and UNREGISTERED_BACKENDS Signed-off-by: Finn Williams Change-Id: I3600dd15f97ccd4ab745deb87d06ba978e2a0b11 --- src/profiling/ProfilingService.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/profiling/ProfilingService.cpp') diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp index a26bba2e60..21972b4c7f 100644 --- a/src/profiling/ProfilingService.cpp +++ b/src/profiling/ProfilingService.cpp @@ -377,6 +377,10 @@ void ProfilingService::Initialize() std::string("backends")); ARMNN_ASSERT(registeredBackendsCounter); InitializeCounterValue(registeredBackendsCounter->m_Uid); + + // Due to backends being registered before the profiling service becomes active, + // we need to set the counter to the correct value here + SetCounterValue(armnn::profiling::REGISTERED_BACKENDS, static_cast(BackendRegistryInstance().Size())); } // Register a counter for the number of registered backends if (!m_CounterDirectory.IsCounterRegistered("Backends unregistered")) -- cgit v1.2.1