From e394bd99f1a55e099445823b7a951f0faa84d439 Mon Sep 17 00:00:00 2001 From: Keith Davis Date: Mon, 2 Dec 2019 15:12:19 +0000 Subject: IVGCVSW-4178 Add code to increment the 3 ArmNN counters * Increment at Runtime.cpp | BackendRegistry.cpp | LoadedNetwork.cpp * Update unit tests * UID generation is now handled by backends Signed-off-by: Keith Davis Change-Id: Ifa53763409078c14839675206d8b260cdc36a8df --- src/profiling/test/SendCounterPacketTests.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/profiling/test/SendCounterPacketTests.hpp') diff --git a/src/profiling/test/SendCounterPacketTests.hpp b/src/profiling/test/SendCounterPacketTests.hpp index 4395d81d16..79ebcd6cba 100644 --- a/src/profiling/test/SendCounterPacketTests.hpp +++ b/src/profiling/test/SendCounterPacketTests.hpp @@ -420,7 +420,9 @@ public: return counterSetPtr; } - const Counter* RegisterCounter(const std::string& parentCategoryName, + const Counter* RegisterCounter(const BackendId& backendId, + const uint16_t uid, + const std::string& parentCategoryName, uint16_t counterClass, uint16_t interpolation, double multiplier, @@ -441,7 +443,7 @@ public: uint16_t counterSetUidValue = counterSetUid.has_value() ? counterSetUid.value() : 0; // Get the counter UIDs and calculate the max counter UID - std::vector counterUids = GetNextCounterUids(deviceCores); + std::vector counterUids = GetNextCounterUids(uid, deviceCores); BOOST_ASSERT(!counterUids.empty()); uint16_t maxCounterUid = deviceCores <= 1 ? counterUids.front() : counterUids.back(); @@ -449,7 +451,8 @@ public: const std::string unitsValue = units.has_value() ? units.value() : ""; // Create the counter - CounterPtr counter = std::make_shared(counterUids.front(), + CounterPtr counter = std::make_shared(armnn::profiling::BACKEND_ID, + counterUids.front(), maxCounterUid, counterClass, interpolation, -- cgit v1.2.1