aboutsummaryrefslogtreecommitdiff
path: root/src/timelineDecoder/TimelineDecoder.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2020-07-20 16:57:44 +0100
committerJim Flynn <jim.flynn@arm.com>2020-07-29 15:35:15 +0100
commitbbfe603e5ae42317a2b67d713d00882bea341c88 (patch)
tree8d8a78d6836384fb92fb9741c865443624dfec68 /src/timelineDecoder/TimelineDecoder.hpp
parenta9c2ce123a6a5a68728d040a0323c482bbe46903 (diff)
downloadarmnn-bbfe603e5ae42317a2b67d713d00882bea341c88.tar.gz
IVGCVSW-5166 Pull out the common and server side code into standalone libraries
Change-Id: I180f84c493a9b2be4b93b25d312ebdd9e71b1735 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/timelineDecoder/TimelineDecoder.hpp')
-rw-r--r--src/timelineDecoder/TimelineDecoder.hpp70
1 files changed, 0 insertions, 70 deletions
diff --git a/src/timelineDecoder/TimelineDecoder.hpp b/src/timelineDecoder/TimelineDecoder.hpp
deleted file mode 100644
index 2efdc4483b..0000000000
--- a/src/timelineDecoder/TimelineDecoder.hpp
+++ /dev/null
@@ -1,70 +0,0 @@
-//
-// Copyright © 2020 Arm Ltd. All rights reserved.
-// SPDX-License-Identifier: MIT
-//
-#pragma once
-
-#include <armnn/profiling/ITimelineDecoder.hpp>
-
-#include <vector>
-
-namespace armnn
-{
-namespace timelinedecoder
-{
-class TimelineDecoder : public ITimelineDecoder
-{
-
-public:
-
- struct Model
- {
- std::vector<Entity> m_Entities;
- std::vector<EventClass> m_EventClasses;
- std::vector<Event> m_Events;
- std::vector<Label> m_Labels;
- std::vector<Relationship> m_Relationships;
- };
-
- using OnNewEntityCallback = void (*)(Model &, const Entity);
- using OnNewEventClassCallback = void (*)(Model &, const EventClass);
- using OnNewEventCallback = void (*)(Model &, const Event);
- using OnNewLabelCallback = void (*)(Model &, const Label);
- using OnNewRelationshipCallback = void (*)(Model &, const Relationship);
-
- virtual TimelineStatus CreateEntity(const Entity &) override;
- virtual TimelineStatus CreateEventClass(const EventClass &) override;
- virtual TimelineStatus CreateEvent(const Event &) override;
- virtual TimelineStatus CreateLabel(const Label &) override;
- virtual TimelineStatus CreateRelationship(const Relationship &) override;
-
- const Model& GetModel();
-
- TimelineStatus SetEntityCallback(const OnNewEntityCallback);
- TimelineStatus SetEventClassCallback(const OnNewEventClassCallback);
- TimelineStatus SetEventCallback(const OnNewEventCallback);
- TimelineStatus SetLabelCallback(const OnNewLabelCallback);
- TimelineStatus SetRelationshipCallback(const OnNewRelationshipCallback);
-
- void SetDefaultCallbacks();
-
- void print();
-
-private:
- Model m_Model;
-
- OnNewEntityCallback m_OnNewEntityCallback;
- OnNewEventClassCallback m_OnNewEventClassCallback;
- OnNewEventCallback m_OnNewEventCallback;
- OnNewLabelCallback m_OnNewLabelCallback;
- OnNewRelationshipCallback m_OnNewRelationshipCallback;
-
- void printLabels();
- void printEntities();
- void printEventClasses();
- void printRelationships();
- void printEvents();
-};
-
-}
-} \ No newline at end of file