From 5aa9fd7ac6bf8dad576fa4a0a32aa3dae98d11ab Mon Sep 17 00:00:00 2001 From: Cathal Corbett Date: Fri, 25 Feb 2022 15:33:28 +0000 Subject: IVGCVSW-6704 Change the namespace from armnn::profiling to arm::pipe * Updated ABI version to 29 due to being the first ABI break in 22.05 !android-nn-driver:7226 Signed-off-by: Cathal Corbett Change-Id: I9c50007dcd5b5e792757e7bd1213606df5ffec36 --- src/profiling/ProfilingService.hpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/profiling/ProfilingService.hpp') diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp index af480f3c5e..ab71b0c768 100644 --- a/src/profiling/ProfilingService.hpp +++ b/src/profiling/ProfilingService.hpp @@ -35,10 +35,10 @@ #include -namespace armnn +namespace arm { -namespace profiling +namespace pipe { // Static constants describing ArmNN's counter UID's static const uint16_t NETWORK_LOADS = 0; @@ -55,10 +55,10 @@ public: using IProfilingConnectionPtr = std::unique_ptr; using CounterIndices = std::vector*>; using CounterValues = std::list>; - using BackendProfilingContext = std::unordered_map>; + using BackendProfilingContext = std::unordered_map>; - ProfilingService(Optional reportStructure = EmptyOptional()) + ProfilingService(armnn::Optional reportStructure = armnn::EmptyOptional()) : m_Options() , m_TimelineReporting(false) , m_CounterDirectory() @@ -126,7 +126,7 @@ public: m_StateMachine, *this) , m_TimelinePacketWriterFactory(m_BufferManager) - , m_MaxGlobalCounterId(armnn::profiling::INFERENCES_RUN) + , m_MaxGlobalCounterId(INFERENCES_RUN) , m_ServiceActive(false) { // Register the "Connection Acknowledged" command handler @@ -149,9 +149,9 @@ public: ~ProfilingService(); // Resets the profiling options, optionally clears the profiling service entirely - void ResetExternalProfilingOptions(const armnn::profiling::ProfilingOptions& options, + void ResetExternalProfilingOptions(const ProfilingOptions& options, bool resetProfilingService = false); - ProfilingState ConfigureProfilingService(const armnn::profiling::ProfilingOptions& options, + ProfilingState ConfigureProfilingService(const ProfilingOptions& options, bool resetProfilingService = false); @@ -162,8 +162,8 @@ public: void Disconnect(); // Store a profiling context returned from a backend that support profiling. - void AddBackendProfilingContext(const BackendId backendId, - std::shared_ptr profilingContext); + void AddBackendProfilingContext(const armnn::BackendId backendId, + std::shared_ptr profilingContext); // Enable the recording of timeline events and entities void NotifyBackendsForTimelineReporting() override; @@ -185,7 +185,7 @@ public: CaptureData GetCaptureData() override; void SetCaptureData(uint32_t capturePeriod, const std::vector& counterIds, - const std::set& activeBackends); + const std::set& activeBackends); // Setters for the profiling service state void SetCounterValue(uint16_t counterUid, uint32_t value) override; @@ -311,6 +311,6 @@ protected: } }; -} // namespace profiling +} // namespace pipe -} // namespace armnn +} // namespace arm -- cgit v1.2.1