aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/ProfilingEvent.cpp
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2022-10-05 14:42:55 +0100
committerKevin May <kevin.may@arm.com>2022-10-11 10:53:06 +0000
commit251fd955c18434b7aa3f486374c4f1a15bbd160e (patch)
treec094dfe973f18ea16b3726b91767c3fcbf363dad /src/armnn/ProfilingEvent.cpp
parente497ed17463820eb33ca051254efd08c892325b5 (diff)
downloadarmnn-251fd955c18434b7aa3f486374c4f1a15bbd160e.tar.gz
IVGCVSW-7222 Fix incorrect kernel measurements in profiling output
* Some CL kernels are not run after the first inference and this breaks the profiler which is expecting a measurement for every kernel each run * Add a function HasKernelMeasurements() to ascertain if the Event is returning kernel measurements and if so insert 0.0 values for any missing kernel measurements. * Fix ExecuteNetwork to only print a json object after all inferences have completed Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I99f2bb0db847f5a52ab4c5705b072155c6b6f333
Diffstat (limited to 'src/armnn/ProfilingEvent.cpp')
-rw-r--r--src/armnn/ProfilingEvent.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/armnn/ProfilingEvent.cpp b/src/armnn/ProfilingEvent.cpp
index e341344544..9f045ffabb 100644
--- a/src/armnn/ProfilingEvent.cpp
+++ b/src/armnn/ProfilingEvent.cpp
@@ -66,6 +66,11 @@ const std::vector<Measurement> Event::GetMeasurements() const
return measurements;
}
+const std::vector<Event::InstrumentPtr>& Event::GetInstruments() const
+{
+ return m_Instruments;
+}
+
const std::string& Event::GetName() const
{
return m_EventName;