diff options
author | Keith Davis <keith.davis@arm.com> | 2019-12-02 15:12:19 +0000 |
---|---|---|
committer | Keith Davis <keith.davis@arm.com> | 2019-12-13 16:21:12 +0000 |
commit | e394bd99f1a55e099445823b7a951f0faa84d439 (patch) | |
tree | ced6e6d4a2932bda64c1f4c5e280b82d87b77929 /src/profiling/DirectoryCaptureCommandHandler.cpp | |
parent | 60a20fb62c992c4c6369bb7f532957f3e151f3d8 (diff) | |
download | armnn-e394bd99f1a55e099445823b7a951f0faa84d439.tar.gz |
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 <keith.davis@arm.com>
Change-Id: Ifa53763409078c14839675206d8b260cdc36a8df
Diffstat (limited to 'src/profiling/DirectoryCaptureCommandHandler.cpp')
-rw-r--r-- | src/profiling/DirectoryCaptureCommandHandler.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/profiling/DirectoryCaptureCommandHandler.cpp b/src/profiling/DirectoryCaptureCommandHandler.cpp index 65a7880d50..f221513572 100644 --- a/src/profiling/DirectoryCaptureCommandHandler.cpp +++ b/src/profiling/DirectoryCaptureCommandHandler.cpp @@ -2,11 +2,12 @@ // Copyright © 2019 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // - -#include <atomic> #include "DirectoryCaptureCommandHandler.hpp" -#include "SendCounterPacket.hpp" +#include <armnn/BackendId.hpp> +#include "ProfilingUtils.hpp" + +#include <atomic> #include <iostream> namespace armnn @@ -199,9 +200,15 @@ void DirectoryCaptureCommandHandler::ReadCategoryRecords(const unsigned char* co GetStringNameFromBuffer(data, categoryRecordOffset + nameOffset), deviceUid, counterSetUid); for (auto& counter : eventRecords) { - const Counter* registeredCounter = m_CounterDirectory.RegisterCounter( - category->m_Name, counter.m_CounterClass, counter.m_CounterInterpolation, counter.m_CounterMultiplier, - counter.m_CounterName, counter.m_CounterDescription, counter.m_CounterUnits); + const Counter* registeredCounter = m_CounterDirectory.RegisterCounter(armnn::profiling::BACKEND_ID, + counter.m_CounterUid, + category->m_Name, + counter.m_CounterClass, + counter.m_CounterInterpolation, + counter.m_CounterMultiplier, + counter.m_CounterName, + counter.m_CounterDescription, + counter.m_CounterUnits); m_UidTranslation[registeredCounter->m_Uid] = counter.m_CounterUid; } } |