From 5a64f22101ecdda4846e9d71428633f3ccd56fb2 Mon Sep 17 00:00:00 2001 From: Keith Davis Date: Wed, 4 Aug 2021 10:35:20 +0100 Subject: IVGCVSW-5980 Add Descriptor, TensorInfo and Convolution algorithm to JSON * Add GUID as field to layer details and profiling events * Add Optional GUID param to existing tests * Improve Details macro to be inline function * Fix some formatting Signed-off-by: Keith Davis Change-Id: I66f192a90a7642b3ee8e7dda0d3f428cce002581 --- include/armnn/IProfiler.hpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include/armnn') diff --git a/include/armnn/IProfiler.hpp b/include/armnn/IProfiler.hpp index 1d350855f6..5ce42017d9 100644 --- a/include/armnn/IProfiler.hpp +++ b/include/armnn/IProfiler.hpp @@ -49,16 +49,23 @@ private: template void AddLayerDetails(const std::string& name, const DescriptorType& desc, - const WorkloadInfo& infos); + const WorkloadInfo& infos, + const profiling::ProfilingGuid guid); Event* BeginEvent(const BackendId& backendId, const std::string& label, - std::vector&& instruments); + std::vector&& instruments, + const Optional& guid); std::unique_ptr pProfilerImpl; friend class ScopedProfilingEvent; - friend class ScopedProfilingUpdateDescriptions; + + template + friend inline void ProfilingUpdateDescriptions(const std::string& name, + const DescriptorType& desc, + const WorkloadInfo& infos, + const profiling::ProfilingGuid guid); // Friend functions for unit testing, see ProfilerTests.cpp. friend size_t GetProfilerEventSequenceSize(armnn::IProfiler* profiler); -- cgit v1.2.1