From 97da5e2e6c8aaaf4249af60e8305431315226f15 Mon Sep 17 00:00:00 2001 From: Keith Davis Date: Thu, 5 Mar 2020 16:25:28 +0000 Subject: IVGCVSW-4541 Modify Timeline Packet construction * Changed TimelinePacket encoding so that there is only one header for multiple timeline swtrace messages * Refactored function names to have more suitable description * Refactored CodeStyle to coincide with ArmNN coding standards * Refactored profiling test names to be descriptive * Refactored ErrorCode name to TimelineStatus * Updated existing unit tests Signed-off-by: Keith Davis Change-Id: I83bd4bb9e7393617bca97eba96a6e1388916e5b0 --- src/profiling/test/ProfilingTestUtils.hpp | 38 +++++++++++++++++-------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'src/profiling/test/ProfilingTestUtils.hpp') diff --git a/src/profiling/test/ProfilingTestUtils.hpp b/src/profiling/test/ProfilingTestUtils.hpp index 7fb5d62591..175c9cc167 100644 --- a/src/profiling/test/ProfilingTestUtils.hpp +++ b/src/profiling/test/ProfilingTestUtils.hpp @@ -18,26 +18,30 @@ using namespace armnn::profiling; inline unsigned int OffsetToNextWord(unsigned int numberOfBytes); -void VerifyTimelineLabelBinaryPacket(Optional guid, - const std::string& label, - const unsigned char* readableData, - unsigned int& offset); - -void VerifyTimelineEventClassBinaryPacket(ProfilingGuid guid, +void VerifyTimelineHeaderBinary(const unsigned char* readableData, + unsigned int& offset, + uint32_t packetDataLength); + +void VerifyTimelineLabelBinaryPacketData(Optional guid, + const std::string& label, + const unsigned char* readableData, + unsigned int& offset); + +void VerifyTimelineEventClassBinaryPacketData(ProfilingGuid guid, + const unsigned char* readableData, + unsigned int& offset); + +void VerifyTimelineRelationshipBinaryPacketData(ProfilingRelationshipType relationshipType, + Optional relationshipGuid, + Optional headGuid, + Optional tailGuid, + const unsigned char* readableData, + unsigned int& offset); + +void VerifyTimelineEntityBinaryPacketData(Optional guid, const unsigned char* readableData, unsigned int& offset); -void VerifyTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, - Optional relationshipGuid, - Optional headGuid, - Optional tailGuid, - const unsigned char* readableData, - unsigned int& offset); - -void VerifyTimelineEntityBinaryPacket(Optional guid, - const unsigned char* readableData, - unsigned int& offset); - void VerifyTimelineEventBinaryPacket(Optional timestamp, Optional threadId, Optional eventGuid, -- cgit v1.2.1