aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ProfilingService.cpp
diff options
context:
space:
mode:
authorFinn Williams <Finn.Williams@arm.com>2020-05-15 18:41:05 +0100
committerfinn.williams <finn.williams@arm.com>2020-05-19 11:45:57 +0000
commit45a736263e117b484528e6dee05c549beae721b4 (patch)
treec674cd5bcd8e22c218c50fadf4c724691c415210 /src/profiling/ProfilingService.cpp
parentb98032f6a46072fee9a2bfcbe631b8193ced567d (diff)
downloadarmnn-45a736263e117b484528e6dee05c549beae721b4.tar.gz
IVGCVSW-4834 Add calls to increment REGISTERED_BACKENDS and UNREGISTERED_BACKENDS
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I3600dd15f97ccd4ab745deb87d06ba978e2a0b11
Diffstat (limited to 'src/profiling/ProfilingService.cpp')
-rw-r--r--src/profiling/ProfilingService.cpp4
1 files changed, 4 insertions, 0 deletions
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<uint32_t>(BackendRegistryInstance().Size()));
}
// Register a counter for the number of registered backends
if (!m_CounterDirectory.IsCounterRegistered("Backends unregistered"))