aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/include/ISendTimelinePacket.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-03-20 21:52:17 +0000
committerJim Flynn <jim.flynn@arm.com>2022-03-23 20:32:03 +0000
commit277618302d0f131eac0b6ac2015dd3eb09aa6ff9 (patch)
treee468fa1362640484b508812596fb5c1b62186882 /profiling/client/include/ISendTimelinePacket.hpp
parenta3bc0b4976395226c0fa0898b26098c4534edbdb (diff)
downloadarmnn-277618302d0f131eac0b6ac2015dd3eb09aa6ff9.tar.gz
IVGCVSW-6706 Move headers to profiling/client/include
!android-nn-driver:7337 Change-Id: Ide401623829cc99fb9b51e9bbce3482ce706a8dd Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'profiling/client/include/ISendTimelinePacket.hpp')
-rw-r--r--profiling/client/include/ISendTimelinePacket.hpp61
1 files changed, 61 insertions, 0 deletions
diff --git a/profiling/client/include/ISendTimelinePacket.hpp b/profiling/client/include/ISendTimelinePacket.hpp
new file mode 100644
index 0000000000..4785e04ef8
--- /dev/null
+++ b/profiling/client/include/ISendTimelinePacket.hpp
@@ -0,0 +1,61 @@
+//
+// Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include <algorithm>
+#include <string>
+#include <vector>
+
+namespace arm
+{
+
+namespace pipe
+{
+
+enum class ProfilingRelationshipType
+{
+ 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).
+};
+
+class ISendTimelinePacket
+{
+public:
+ virtual ~ISendTimelinePacket()
+ {}
+
+ /// Commits the current buffer and reset the member variables
+ virtual void Commit() = 0;
+
+ /// Create and write a TimelineEntityBinaryPacket from the parameters to the buffer.
+ virtual void SendTimelineEntityBinaryPacket(uint64_t profilingGuid) = 0;
+
+ /// Create and write a TimelineEventBinaryPacket from the parameters to the buffer.
+ virtual void
+ SendTimelineEventBinaryPacket(uint64_t timestamp, int threadId, uint64_t profilingGuid) = 0;
+
+ /// Create and write a TimelineEventClassBinaryPacket from the parameters to the buffer.
+ virtual void SendTimelineEventClassBinaryPacket(uint64_t profilingGuid, uint64_t nameGuid) = 0;
+
+ /// Create and write a TimelineLabelBinaryPacket from the parameters to the buffer.
+ virtual void SendTimelineLabelBinaryPacket(uint64_t profilingGuid, const std::string& label) = 0;
+
+ /// Create and write a TimelineMessageDirectoryPackage in the buffer
+ virtual void SendTimelineMessageDirectoryPackage() = 0;
+
+ /// Create and write a TimelineRelationshipBinaryPacket from the parameters to the buffer.
+ virtual void SendTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType,
+ uint64_t relationshipGuid,
+ uint64_t headGuid,
+ uint64_t tailGuid,
+ uint64_t attributeGuid) = 0;
+};
+
+} // namespace pipe
+
+} // namespace arm