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 --- include/armnn/profiling/ITimelineDecoder.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include/armnn/profiling') diff --git a/include/armnn/profiling/ITimelineDecoder.hpp b/include/armnn/profiling/ITimelineDecoder.hpp index 7199b38d24..3a02bb5599 100644 --- a/include/armnn/profiling/ITimelineDecoder.hpp +++ b/include/armnn/profiling/ITimelineDecoder.hpp @@ -13,10 +13,10 @@ class ITimelineDecoder public: - enum class ErrorCode + enum class TimelineStatus { - ErrorCode_Success, - ErrorCode_Fail + TimelineStatus_Success, + TimelineStatus_Fail }; enum class RelationshipType @@ -60,9 +60,9 @@ public: virtual ~ITimelineDecoder() = default; - virtual ErrorCode CreateEntity(const Entity&) = 0; - virtual ErrorCode CreateEventClass(const EventClass&) = 0; - virtual ErrorCode CreateEvent(const Event&) = 0; - virtual ErrorCode CreateLabel(const Label&) = 0; - virtual ErrorCode CreateRelationship(const Relationship&) = 0; + virtual TimelineStatus CreateEntity(const Entity&) = 0; + virtual TimelineStatus CreateEventClass(const EventClass&) = 0; + virtual TimelineStatus CreateEvent(const Event&) = 0; + virtual TimelineStatus CreateLabel(const Label&) = 0; + virtual TimelineStatus CreateRelationship(const Relationship&) = 0; }; \ No newline at end of file -- cgit v1.2.1