diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2020-01-24 16:27:02 +0000 |
---|---|---|
committer | Colm Donelan <Colm.Donelan@arm.com> | 2020-01-28 12:01:42 +0000 |
commit | 5ccb33da0565e0bf2279318f1e7ad597afcc0367 (patch) | |
tree | 0266241d45ea8d0b0055c78ee0f28ee8cbc3a462 /src/profiling/ISendTimelinePacket.hpp | |
parent | 03b6b410321923bac7ed2eb1507f524953c9a464 (diff) | |
download | armnn-5ccb33da0565e0bf2279318f1e7ad597afcc0367.tar.gz |
IVGCVSW-4316 Promote ISendTimelinePacket and IProfilingGuidGenerator
As part of IVGCVSW-4316 we need to expose ISendTimelinePacket and
IProfilingGuidGenerator to enable them to be used by backends for
profiling. This also required moving ProfilingRelationshipType from
ProfilingUtils.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I58cc64e32ecfffa5231c9d2028522ed58d0ddf31
Diffstat (limited to 'src/profiling/ISendTimelinePacket.hpp')
-rw-r--r-- | src/profiling/ISendTimelinePacket.hpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/profiling/ISendTimelinePacket.hpp b/src/profiling/ISendTimelinePacket.hpp deleted file mode 100644 index a95413455a..0000000000 --- a/src/profiling/ISendTimelinePacket.hpp +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright © 2019 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#pragma once - -#include "ProfilingUtils.hpp" - -#include <algorithm> -#include <string> -#include <vector> -#include <thread> - -namespace armnn -{ - -namespace profiling -{ - -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, - std::thread::id threadId, - uint64_t profilingGuid) = 0; - - /// Create and write a TimelineEventClassBinaryPacket from the parameters to the buffer. - virtual void SendTimelineEventClassBinaryPacket(uint64_t profilingGuid) = 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) = 0; -}; - -} // namespace profiling - -} // namespace armnn - |