From 9c85b41a9fcb3c64d7a686373e7dde75630ccd49 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Wed, 16 Mar 2022 00:27:43 +0000 Subject: IVGCVSW-6852 Break the remaining dependencies on Arm NN in the profiling code Change-Id: I18b8ca22896567904768170350ee5eb22edd4a22 Signed-off-by: Jim Flynn --- src/profiling/ProfilingService.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/profiling/ProfilingService.hpp') diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp index e43642cf19..9e788fd4b3 100644 --- a/src/profiling/ProfilingService.hpp +++ b/src/profiling/ProfilingService.hpp @@ -28,7 +28,6 @@ #include "SendTimelinePacket.hpp" #include "TimelinePacketWriterFactory.hpp" #include "INotifyBackends.hpp" -#include #include @@ -52,6 +51,9 @@ public: ProfilingService(uint16_t maxGlobalCounterId, IInitialiseProfilingService& initialiser, + const std::string& softwareInfo, + const std::string& softwareVersion, + const std::string& hardwareVersion, arm::pipe::Optional reportStructure = arm::pipe::EmptyOptional()) : m_Options() , m_TimelineReporting(false) @@ -67,7 +69,7 @@ public: m_CommandHandlerRegistry, m_PacketVersionResolver) , m_BufferManager() - , m_SendCounterPacket(m_BufferManager) + , m_SendCounterPacket(m_BufferManager, softwareInfo, softwareVersion, hardwareVersion) , m_SendThread(m_StateMachine, m_BufferManager, m_SendCounterPacket) , m_SendTimelinePacket(m_BufferManager) , m_PeriodicCounterCapture(m_Holder, m_SendCounterPacket, *this, m_CounterIdMap, m_BackendProfilingContexts) @@ -93,7 +95,7 @@ public: m_BackendProfilingContexts, m_CounterIdMap, m_Holder, - MAX_ARMNN_COUNTER, + maxGlobalCounterId, m_PeriodicCounterCapture, *this, m_SendCounterPacket, @@ -110,6 +112,7 @@ public: m_StateMachine, reportStructure, m_TimelineReporting, + *this, *this) , m_DeactivateTimelineReportingCommandHandler(0, 7, -- cgit v1.2.1