aboutsummaryrefslogtreecommitdiff
path: root/src/timelineDecoder
diff options
context:
space:
mode:
authorFinn Williams <Finn.Williams@arm.com>2020-05-11 15:39:58 +0100
committerJim Flynn <jim.flynn@arm.com>2020-05-24 15:20:27 +0000
commit0a336dce464a822bbd9563b5dc021a37c6671515 (patch)
tree1c00ba9bc68eb8f9decf7aeafa38ddbf376b4617 /src/timelineDecoder
parent6feca6cc9bce5a4d2092c7b99a278f2c7a8e606f (diff)
downloadarmnn-0a336dce464a822bbd9563b5dc021a37c6671515.tar.gz
IVGCVSW-4734 Add an Attribute label guid to the relationship message to reduce traffic
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: Ia55c52c12fe3d30eb47bc42c932a33c620dc9197
Diffstat (limited to 'src/timelineDecoder')
-rw-r--r--src/timelineDecoder/TimelineCaptureCommandHandler.cpp4
-rw-r--r--src/timelineDecoder/tests/TimelineTests.cpp6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/timelineDecoder/TimelineCaptureCommandHandler.cpp b/src/timelineDecoder/TimelineCaptureCommandHandler.cpp
index 58edd9fc43..69389115a0 100644
--- a/src/timelineDecoder/TimelineCaptureCommandHandler.cpp
+++ b/src/timelineDecoder/TimelineCaptureCommandHandler.cpp
@@ -107,6 +107,10 @@ void TimelineCaptureCommandHandler::ReadRelationship(const unsigned char* data,
relationship.m_TailGuid = profiling::ReadUint64(data, offset);
offset += uint64_t_size;
+
+ relationship.m_AttributeGuid = profiling::ReadUint64(data, offset);
+ offset += uint64_t_size;
+
m_TimelineDecoder.CreateRelationship(relationship);
}
diff --git a/src/timelineDecoder/tests/TimelineTests.cpp b/src/timelineDecoder/tests/TimelineTests.cpp
index bff25367fd..390b589b7f 100644
--- a/src/timelineDecoder/tests/TimelineTests.cpp
+++ b/src/timelineDecoder/tests/TimelineTests.cpp
@@ -227,7 +227,8 @@ BOOST_AUTO_TEST_CASE(TimelineCaptureTest)
sendTimelinePacket->SendTimelineRelationshipBinaryPacket(relationshipType,
relationshipGuid,
headGuid,
- tailGuid);
+ tailGuid,
+ 0);
sendTimelinePacket->Commit();
SendTimelinePacketToCommandHandler(bufferManager.GetReadableBuffer()->GetReadableData(),
timelineCaptureCommandHandler);
@@ -327,7 +328,8 @@ BOOST_AUTO_TEST_CASE(TimelineCaptureTestMultipleStringsInBuffer)
sendTimelinePacket->SendTimelineRelationshipBinaryPacket(relationshipType,
relationshipGuid,
headGuid,
- tailGuid);
+ tailGuid,
+ 0);
}
sendTimelinePacket->Commit();