26 : m_BufferManager(bufferManager)
27 , m_WriteBuffer(nullptr)
29 , m_RemainingBufferSize(0u)
52 uint64_t relationshipGuid,
55 uint64_t attributeGuid)
override;
60 template <
typename Func,
typename ... Params>
61 void ForwardWriteBinaryFunction(Func& func, Params&& ... params);
65 unsigned int m_Offset;
66 unsigned int m_RemainingBufferSize;
68 const unsigned int m_uint32_t_size =
sizeof(uint32_t);
70 std::pair<uint32_t, uint32_t> m_PacketHeader;
71 uint32_t m_PacketDataLength;
73 bool m_DirectoryPackage =
false;
76 template<
typename Func,
typename ... Params>
77 void SendTimelinePacket::ForwardWriteBinaryFunction(Func& func, Params&& ... params)
83 unsigned int numberOfBytesWritten = 0;
88 &m_WriteBuffer->GetWritableData()[m_Offset],
89 m_RemainingBufferSize,
90 numberOfBytesWritten);
102 m_Offset += numberOfBytesWritten;
103 m_RemainingBufferSize -= numberOfBytesWritten;
void SendTimelineMessageDirectoryPackage() override
Create and write a TimelineMessageDirectoryPackage in the buffer.
void SendTimelineLabelBinaryPacket(uint64_t profilingGuid, const std::string &label) override
Create and write a TimelineLabelBinaryPacket from the parameters to the buffer.
void SendTimelineEntityBinaryPacket(uint64_t profilingGuid) override
Create and write a TimelineEntityBinaryPacket from the parameters to the buffer.
Copyright (c) 2021 ARM Limited and Contributors.
virtual void SendTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, uint64_t attributeGuid) override
Create and write a TimelineRelationshipBinaryPacket from the parameters to the buffer.
void Commit() override
Commits the current buffer and reset the member variables.
ProfilingRelationshipType
#define ARMNN_ASSERT(COND)
void SendTimelineEventBinaryPacket(uint64_t timestamp, int threadId, uint64_t profilingGuid) override
Create and write a TimelineEventBinaryPacket from the parameters to the buffer.
Base class for all ArmNN exceptions so that users can filter to just those.
SendTimelinePacket(IBufferManager &bufferManager)
std::unique_ptr< IPacketBuffer > IPacketBufferPtr
void SendTimelineEventClassBinaryPacket(uint64_t profilingGuid, uint64_t nameGuid) override
Create and write a TimelineEventClassBinaryPacket from the parameters to the buffer.