From 78229c4e6472b6e30627d549c97e9cbe678ec4d3 Mon Sep 17 00:00:00 2001 From: Finn Williams Date: Fri, 8 May 2020 12:24:31 +0100 Subject: IVGCVSW-4794 Fix ArmNN Counters incorrectly set to delta * Change all ArmNN counters to absolute * Fix bug in the DirectoryCaptureCommandHandler where the offsets of the m_CounterClass and m_CounterInterpolation were swapped * Fix bug in the DirectoryCaptureCommandHandler where the offsets of the m_DeviceUid and m_CounterSetUid were swapped Signed-off-by: Finn Williams Change-Id: If396628306757088aa0acf739fb3e4f240b4394b --- src/profiling/DirectoryCaptureCommandHandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/profiling/DirectoryCaptureCommandHandler.cpp') diff --git a/src/profiling/DirectoryCaptureCommandHandler.cpp b/src/profiling/DirectoryCaptureCommandHandler.cpp index 23221fb74e..e20f5402c6 100644 --- a/src/profiling/DirectoryCaptureCommandHandler.cpp +++ b/src/profiling/DirectoryCaptureCommandHandler.cpp @@ -230,21 +230,21 @@ std::vector DirectoryCaptureCommandHandler::ReadEve // Event record word 1: // 0:15 [16] counter_set: UID of the counter_set this event is associated with. Set to zero if the event // is NOT associated with a counter_set - eventRecords[i].m_DeviceUid = profiling::ReadUint16(data, eventRecordOffset); + eventRecords[i].m_CounterSetUid = profiling::ReadUint16(data, eventRecordOffset); eventRecordOffset += uint16_t_size; // 16:31 [16] device: UID of the device this event is associated with. Set to zero if the event is NOT // associated with a device - eventRecords[i].m_CounterSetUid = profiling::ReadUint16(data, eventRecordOffset); + eventRecords[i].m_DeviceUid = profiling::ReadUint16(data, eventRecordOffset); eventRecordOffset += uint16_t_size; // Event record word 2: // 0:15 [16] interpolation: type describing how to interpolate each data point in a stream of data points - eventRecords[i].m_CounterClass = profiling::ReadUint16(data, eventRecordOffset); + eventRecords[i].m_CounterInterpolation = profiling::ReadUint16(data, eventRecordOffset); eventRecordOffset += uint16_t_size; // 16:31 [16] class: type describing how to treat each data point in a stream of data points - eventRecords[i].m_CounterInterpolation = profiling::ReadUint16(data, eventRecordOffset); + eventRecords[i].m_CounterClass = profiling::ReadUint16(data, eventRecordOffset); eventRecordOffset += uint16_t_size; // Event record word 3-4: -- cgit v1.2.1