From 19793551a67a5afd4cfb68e5dda7751e3d321a35 Mon Sep 17 00:00:00 2001 From: Cathal Corbett Date: Fri, 4 Mar 2022 10:36:34 +0000 Subject: IVGCVSW-6817 Add IProfilingService& as an argument to the IReportStructure Signed-off-by: Cathal Corbett Change-Id: Ib8e75eea49debe3b1dd8fa72623a55b26cb6ded4 --- src/armnn/Runtime.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/armnn/Runtime.cpp') diff --git a/src/armnn/Runtime.cpp b/src/armnn/Runtime.cpp index af257e1be5..57bceddbfd 100644 --- a/src/armnn/Runtime.cpp +++ b/src/armnn/Runtime.cpp @@ -286,18 +286,18 @@ const std::shared_ptr RuntimeImpl::GetProfiler(NetworkId networkId) c return nullptr; } -void RuntimeImpl::ReportStructure() // arm::pipe::IProfilingService& profilingService as param +void RuntimeImpl::ReportStructure(arm::pipe::IProfilingService& profilingService) { - // No-op for the time being, but this may be useful in future to have the profilingService available - // if (profilingService.IsProfilingEnabled()){} - - LoadedNetworks::iterator it = m_LoadedNetworks.begin(); - while (it != m_LoadedNetworks.end()) + if (profilingService.IsProfilingEnabled()) { - auto& loadedNetwork = it->second; - loadedNetwork->SendNetworkStructure(); - // Increment the Iterator to point to next entry - it++; + LoadedNetworks::iterator it = m_LoadedNetworks.begin(); + while (it != m_LoadedNetworks.end()) + { + auto& loadedNetwork = it->second; + loadedNetwork->SendNetworkStructure(profilingService); + // Increment the Iterator to point to next entry + it++; + } } } -- cgit v1.2.1