diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-02-21 11:14:08 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-03-02 12:51:36 +0000 |
commit | 510f6183d289b176702a18f020449c68be6f1075 (patch) | |
tree | 28e8e4f27af5d1ee912c93d47628ec219d37a722 /tests/profiling/timelineDecoder/TimelineModel.h | |
parent | 4c998993bda1475595be5505690ff4e08dc2389e (diff) | |
download | armnn-510f6183d289b176702a18f020449c68be6f1075.tar.gz |
IVGCVSW-4164 Change the callbacks to a C++ pure virtual interface
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I0a15b9f228ceb5a8393a48571b345394c005ee1f
Diffstat (limited to 'tests/profiling/timelineDecoder/TimelineModel.h')
-rw-r--r-- | tests/profiling/timelineDecoder/TimelineModel.h | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/tests/profiling/timelineDecoder/TimelineModel.h b/tests/profiling/timelineDecoder/TimelineModel.h deleted file mode 100644 index a4fbd0dbde..0000000000 --- a/tests/profiling/timelineDecoder/TimelineModel.h +++ /dev/null @@ -1,96 +0,0 @@ -// -// Copyright © 2019 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// -#ifndef ARMNN_ITIMELINEMODEL_H -#define ARMNN_ITIMELINEMODEL_H - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include <stdint.h> - -struct Model; - -typedef enum RelationshipType -{ - RetentionLink, /// Head retains(parents) Tail - ExecutionLink, /// Head execution start depends on Tail execution completion - DataLink, /// Head uses data of Tail - LabelLink /// Head uses label Tail (Tail MUST be a guid of a label). -} RelationshipType; - -typedef struct Entity -{ - uint64_t m_Guid; -} Entity; - -typedef struct EventClass -{ - uint64_t m_Guid; -} EventClass; - -typedef struct Event -{ - uint64_t m_Guid; - uint64_t m_TimeStamp; - unsigned char* m_ThreadId; -} ProfilingEvent; - -typedef struct Label -{ - uint64_t m_Guid; - char* m_Name; -} Label; - -typedef struct Relationship -{ - RelationshipType m_RelationshipType; - uint64_t m_Guid; - uint64_t m_HeadGuid; - uint64_t m_TailGuid; -} Relationship; - -typedef void (*OnNewEntityCallback)(const Entity, struct Model* model); -typedef void (*OnNewEventClassCallback)(const EventClass, struct Model* model); -typedef void (*OnNewEventCallback)(const Event, struct Model* model); -typedef void (*OnNewLabelCallback)(const Label, struct Model* model); -typedef void (*OnNewRelationshipCallback)(const Relationship, struct Model* model) ; - -typedef struct Model -{ - OnNewEntityCallback m_EntityCb; - OnNewEventClassCallback m_EventClassCb; - OnNewEventCallback m_EventCb; - OnNewLabelCallback m_LabelCb; - OnNewRelationshipCallback m_RelationshipCb; - - Entity** m_Entities; - EventClass** m_EventClasses; - Event** m_Events; - Label** m_Labels; - Relationship** m_Relationships; - - uint32_t m_EntityCount; - uint32_t m_EntityCapacity; - - uint32_t m_EventClassCount; - uint32_t m_EventClassCapacity; - - uint32_t m_EventCount; - uint32_t m_EventCapacity; - - uint32_t m_LabelCount; - uint32_t m_LabelCapacity; - - uint32_t m_RelationshipCount; - uint32_t m_RelationshipCapacity; -} Model; - -#ifdef __cplusplus -} -#endif - -#endif //ARMNN_ITIMELINEMODEL_H
\ No newline at end of file |