20.02
|
Typedefs | |
using | IBackendProfilingContextUniquePtr = std::unique_ptr< IBackendProfilingContext > |
using | CategoryPtr = std::unique_ptr< Category > |
using | DevicePtr = std::unique_ptr< Device > |
using | CounterSetPtr = std::unique_ptr< CounterSet > |
using | CounterPtr = std::shared_ptr< Counter > |
using | Categories = std::unordered_set< CategoryPtr > |
using | Devices = std::unordered_map< uint16_t, DevicePtr > |
using | CounterSets = std::unordered_map< uint16_t, CounterSetPtr > |
using | Counters = std::unordered_map< uint16_t, CounterPtr > |
using | CategoriesIt = Categories::const_iterator |
using | DevicesIt = Devices::const_iterator |
using | CounterSetsIt = CounterSets::const_iterator |
using | CountersIt = Counters::const_iterator |
using | IPacketBufferPtr = std::unique_ptr< IPacketBuffer > |
Enumerations | |
enum | ProfilingRelationshipType { RetentionLink, ExecutionLink, DataLink, LabelLink } |
enum | TargetEndianness { BeWire, LeWire } |
enum | PackageActivity { StreamMetaData, CounterDirectory, Unknown } |
enum | ProfilingState { Uninitialised, NotConnected, WaitingForAck, Active } |
enum | TimelinePacketStatus { Ok, Error, BufferExhaustion } |
Functions | |
constexpr uint32_t | EncodeVersion (uint32_t major, uint32_t minor, uint32_t patch) |
std::ostream & | operator<< (std::ostream &os, const Version &version) |
constexpr char const * | GetProfilingStateName (ProfilingState state) |
uint16_t | GetNextUid (bool peekOnly) |
std::vector< uint16_t > | GetNextCounterUids (uint16_t firstUid, uint16_t cores) |
void | WriteBytes (const IPacketBufferPtr &packetBuffer, unsigned int offset, const void *value, unsigned int valueSize) |
uint32_t | ConstructHeader (uint32_t packetFamily, uint32_t packetId) |
uint32_t | ConstructHeader (uint32_t packetFamily, uint32_t packetClass, uint32_t packetType) |
void | WriteUint64 (const std::unique_ptr< IPacketBuffer > &packetBuffer, unsigned int offset, uint64_t value) |
void | WriteUint32 (const IPacketBufferPtr &packetBuffer, unsigned int offset, uint32_t value) |
void | WriteUint16 (const IPacketBufferPtr &packetBuffer, unsigned int offset, uint16_t value) |
void | WriteUint8 (const IPacketBufferPtr &packetBuffer, unsigned int offset, uint8_t value) |
void | WriteBytes (unsigned char *buffer, unsigned int offset, const void *value, unsigned int valueSize) |
void | WriteUint64 (unsigned char *buffer, unsigned int offset, uint64_t value) |
void | WriteUint32 (unsigned char *buffer, unsigned int offset, uint32_t value) |
void | WriteUint16 (unsigned char *buffer, unsigned int offset, uint16_t value) |
void | WriteUint8 (unsigned char *buffer, unsigned int offset, uint8_t value) |
void | ReadBytes (const IPacketBufferPtr &packetBuffer, unsigned int offset, unsigned int valueSize, uint8_t outValue[]) |
uint64_t | ReadUint64 (const IPacketBufferPtr &packetBuffer, unsigned int offset) |
uint32_t | ReadUint32 (const IPacketBufferPtr &packetBuffer, unsigned int offset) |
uint16_t | ReadUint16 (const IPacketBufferPtr &packetBuffer, unsigned int offset) |
uint8_t | ReadUint8 (const IPacketBufferPtr &packetBuffer, unsigned int offset) |
void | ReadBytes (const unsigned char *buffer, unsigned int offset, unsigned int valueSize, uint8_t outValue[]) |
uint64_t | ReadUint64 (const unsigned char *buffer, unsigned int offset) |
uint32_t | ReadUint32 (const unsigned char *buffer, unsigned int offset) |
uint16_t | ReadUint16 (const unsigned char *buffer, unsigned int offset) |
uint8_t | ReadUint8 (const unsigned char *buffer, unsigned int offset) |
std::string | GetSoftwareInfo () |
std::string | GetHardwareVersion () |
std::string | GetSoftwareVersion () |
std::string | GetProcessName () |
uint32_t | CalculateSizeOfPaddedSwString (const std::string &str) |
SwTraceMessage | ReadSwTraceMessage (const unsigned char *packetBuffer, unsigned int &offset) |
std::pair< uint32_t, uint32_t > | CreateTimelinePacketHeader (uint32_t packetFamily, uint32_t packetClass, uint32_t packetType, uint32_t streamId, uint32_t sequenceNumbered, uint32_t dataLength) |
Creates a timeline packet header. More... | |
std::pair< uint32_t, uint32_t > | CreateTimelineMessagePacketHeader (unsigned int dataLength) |
Creates a packet header for the timeline messages: More... | |
TimelinePacketStatus | WriteTimelineLabelBinaryPacket (uint64_t profilingGuid, const std::string &label, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten) |
TimelinePacketStatus | WriteTimelineEntityBinary (uint64_t profilingGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten) |
TimelinePacketStatus | WriteTimelineRelationshipBinary (ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten) |
TimelinePacketStatus | WriteTimelineMessageDirectoryPackage (unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten) |
TimelinePacketStatus | WriteTimelineEventClassBinary (uint64_t profilingGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten) |
TimelinePacketStatus | WriteTimelineEventBinary (uint64_t timestamp, std::thread::id threadId, uint64_t profilingGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten) |
std::string | CentreAlignFormatting (const std::string &stringToPass, const int spacingWidth) |
void | PrintDeviceDetails (const std::pair< const unsigned short, std::unique_ptr< Device >> &devicePair) |
void | PrintCounterSetDetails (const std::pair< const unsigned short, std::unique_ptr< CounterSet >> &counterSetPair) |
void | PrintCounterDetails (std::shared_ptr< Counter > &counter) |
void | PrintCategoryDetails (const std::unique_ptr< Category > &category, std::unordered_map< unsigned short, std::shared_ptr< Counter >> counterMap) |
void | PrintCounterDirectory (ICounterDirectory &counterDirectory) |
uint64_t | GetTimestamp () |
template<typename SwTracePolicy > | |
bool | IsValidSwTraceString (const std::string &s) |
template<typename SwTracePolicy > | |
bool | StringToSwTraceString (const std::string &s, std::vector< uint32_t > &outputBuffer) |
template<typename SwTracePolicy , typename SwTraceBuffer = std::vector<uint32_t>> | |
bool | ConvertDirectoryComponent (const std::string &directoryComponent, SwTraceBuffer &swTraceBuffer) |
void | WriteBytes (const IPacketBuffer &packetBuffer, unsigned int offset, const void *value, unsigned int valueSize) |
void | WriteUint64 (const IPacketBufferPtr &packetBuffer, unsigned int offset, uint64_t value) |
Variables | |
uint32_t | uint16_t_size = sizeof(uint16_t) |
uint32_t | uint32_t_size = sizeof(uint32_t) |
using Categories = std::unordered_set<CategoryPtr> |
Definition at line 37 of file ICounterDirectory.hpp.
using CategoriesIt = Categories::const_iterator |
Definition at line 43 of file ICounterDirectory.hpp.
using CategoryPtr = std::unique_ptr<Category> |
Definition at line 31 of file ICounterDirectory.hpp.
using CounterPtr = std::shared_ptr<Counter> |
Definition at line 34 of file ICounterDirectory.hpp.
using Counters = std::unordered_map<uint16_t, CounterPtr> |
Definition at line 40 of file ICounterDirectory.hpp.
using CounterSetPtr = std::unique_ptr<CounterSet> |
Definition at line 33 of file ICounterDirectory.hpp.
using CounterSets = std::unordered_map<uint16_t, CounterSetPtr> |
Definition at line 39 of file ICounterDirectory.hpp.
using CounterSetsIt = CounterSets::const_iterator |
Definition at line 45 of file ICounterDirectory.hpp.
using CountersIt = Counters::const_iterator |
Definition at line 46 of file ICounterDirectory.hpp.
Definition at line 32 of file ICounterDirectory.hpp.
Definition at line 38 of file ICounterDirectory.hpp.
using DevicesIt = Devices::const_iterator |
Definition at line 44 of file ICounterDirectory.hpp.
using IBackendProfilingContextUniquePtr = std::unique_ptr<IBackendProfilingContext> |
Definition at line 27 of file IBackendProfilingContext.hpp.
using IPacketBufferPtr = std::unique_ptr<IPacketBuffer> |
Definition at line 40 of file IPacketBuffer.hpp.
|
strong |
Enumerator | |
---|---|
StreamMetaData | |
CounterDirectory | |
Unknown |
Definition at line 30 of file FileOnlyProfilingConnection.hpp.
|
strong |
Definition at line 19 of file ISendTimelinePacket.hpp.
|
strong |
Enumerator | |
---|---|
Uninitialised | |
NotConnected | |
WaitingForAck | |
Active |
Definition at line 18 of file ProfilingStateMachine.hpp.
|
strong |
Enumerator | |
---|---|
BeWire | |
LeWire |
Definition at line 24 of file FileOnlyProfilingConnection.hpp.
|
strong |
Enumerator | |
---|---|
Ok | |
Error | |
BufferExhaustion |
Definition at line 204 of file ProfilingUtils.hpp.
uint32_t CalculateSizeOfPaddedSwString | ( | const std::string & | str | ) |
Definition at line 310 of file ProfilingUtils.cpp.
References armnn::numeric_cast(), and uint32_t_size.
Referenced by ReadSwTraceMessage().
std::string CentreAlignFormatting | ( | const std::string & | stringToPass, |
const int | spacingWidth | ||
) |
Definition at line 858 of file ProfilingUtils.cpp.
Referenced by PeriodicCounterCaptureCommandHandler::operator()(), TimelineDecoder::print(), CategoryRecord::print(), PrintCategoryDetails(), EventRecord::printContents(), CounterSetRecord::printContents(), DeviceRecord::printContents(), PrintCounterDetails(), PrintCounterDirectory(), PrintCounterSetDetails(), PrintDeviceDetails(), EventRecord::printHeader(), CounterSetRecord::printHeader(), and DeviceRecord::printHeader().
uint32_t ConstructHeader | ( | uint32_t | packetFamily, |
uint32_t | packetId | ||
) |
Definition at line 96 of file ProfilingUtils.cpp.
Referenced by ConvertDirectoryComponent().
uint32_t ConstructHeader | ( | uint32_t | packetFamily, |
uint32_t | packetClass, | ||
uint32_t | packetType | ||
) |
Definition at line 103 of file ProfilingUtils.cpp.
bool armnn::profiling::ConvertDirectoryComponent | ( | const std::string & | directoryComponent, |
SwTraceBuffer & | swTraceBuffer | ||
) |
Definition at line 126 of file ProfilingUtils.hpp.
References ConstructHeader(), CreateTimelinePacketHeader(), GetHardwareVersion(), GetNextCounterUids(), GetNextUid(), GetProcessName(), GetSoftwareInfo(), GetSoftwareVersion(), ReadBytes(), ReadUint16(), ReadUint32(), ReadUint64(), ReadUint8(), WriteBytes(), WriteUint16(), WriteUint32(), WriteUint64(), and WriteUint8().
std::pair<uint32_t, uint32_t> armnn::profiling::CreateTimelineMessagePacketHeader | ( | unsigned int | dataLength | ) |
Creates a packet header for the timeline messages:
dataLength | The length of the message body in bytes |
Definition at line 444 of file ProfilingUtils.cpp.
References CreateTimelinePacketHeader().
std::pair< uint32_t, uint32_t > CreateTimelinePacketHeader | ( | uint32_t | packetFamily, |
uint32_t | packetClass, | ||
uint32_t | packetType, | ||
uint32_t | streamId, | ||
uint32_t | sequenceNumbered, | ||
uint32_t | dataLength | ||
) |
Creates a timeline packet header.
packetFamiliy Timeline Packet Family packetClass Timeline Packet Class packetType Timeline Packet Type streamId Stream identifier seqeunceNumbered When non-zero the 4 bytes following the header is a u32 sequence number dataLength Unsigned 24-bit integer. Length of data, in bytes. Zero is permitted
Definition at line 404 of file ProfilingUtils.cpp.
Referenced by SendTimelinePacket::Commit(), ConvertDirectoryComponent(), CreateTimelineMessagePacketHeader(), and WriteTimelineMessageDirectoryPackage().
|
inline |
Definition at line 18 of file EncodeVersion.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), Version::GetEncodedValue(), and SendCounterPacket::SendStreamMetaDataPacket().
std::string GetHardwareVersion | ( | ) |
Definition at line 287 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), and SendCounterPacket::SendStreamMetaDataPacket().
std::vector< uint16_t > GetNextCounterUids | ( | uint16_t | firstUid, |
uint16_t | cores | ||
) |
Definition at line 74 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), CounterDirectory::RegisterCounter(), and MockCounterDirectory::RegisterCounter().
uint16_t GetNextUid | ( | bool | peekOnly | ) |
Definition at line 54 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), CounterDirectory::RegisterCounterSet(), MockCounterDirectory::RegisterCounterSet(), CounterDirectory::RegisterDevice(), and MockCounterDirectory::RegisterDevice().
std::string GetProcessName | ( | ) |
Definition at line 299 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), and SendCounterPacket::SendStreamMetaDataPacket().
constexpr char const* armnn::profiling::GetProfilingStateName | ( | ProfilingState | state | ) |
Definition at line 59 of file ProfilingStateMachine.hpp.
References Active, NotConnected, Uninitialised, and WaitingForAck.
Referenced by PerJobCounterSelectionCommandHandler::operator()(), RequestCounterDirectoryCommandHandler::operator()(), ConnectionAcknowledgedCommandHandler::operator()(), and PeriodicCounterSelectionCommandHandler::operator()().
std::string GetSoftwareInfo | ( | ) |
Definition at line 282 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), and SendCounterPacket::SendStreamMetaDataPacket().
std::string GetSoftwareVersion | ( | ) |
Definition at line 292 of file ProfilingUtils.cpp.
References ARMNN_VERSION.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), and SendCounterPacket::SendStreamMetaDataPacket().
uint64_t GetTimestamp | ( | ) |
Definition at line 1050 of file ProfilingUtils.cpp.
Referenced by TimelineUtilityMethods::RecordEvent(), and PeriodicCounterCapture::Stop().
bool armnn::profiling::IsValidSwTraceString | ( | const std::string & | s | ) |
Definition at line 87 of file ProfilingUtils.hpp.
|
inline |
Definition at line 75 of file EncodeVersion.hpp.
References Version::ToString().
void armnn::profiling::PrintCategoryDetails | ( | const std::unique_ptr< Category > & | category, |
std::unordered_map< unsigned short, std::shared_ptr< Counter >> | counterMap | ||
) |
Definition at line 940 of file ProfilingUtils.cpp.
References CentreAlignFormatting(), and PrintCounterDetails().
Referenced by PrintCounterDirectory().
void armnn::profiling::PrintCounterDetails | ( | std::shared_ptr< Counter > & | counter | ) |
Definition at line 909 of file ProfilingUtils.cpp.
References CentreAlignFormatting().
Referenced by PrintCategoryDetails().
void PrintCounterDirectory | ( | ICounterDirectory & | counterDirectory | ) |
Definition at line 1003 of file ProfilingUtils.cpp.
References CentreAlignFormatting(), ICounterDirectory::GetCategories(), ICounterDirectory::GetCounters(), ICounterDirectory::GetCounterSets(), ICounterDirectory::GetDevices(), PrintCategoryDetails(), PrintCounterSetDetails(), and PrintDeviceDetails().
Referenced by DirectoryCaptureCommandHandler::operator()().
void armnn::profiling::PrintCounterSetDetails | ( | const std::pair< const unsigned short, std::unique_ptr< CounterSet >> & | counterSetPair | ) |
Definition at line 893 of file ProfilingUtils.cpp.
References CentreAlignFormatting().
Referenced by PrintCounterDirectory().
void armnn::profiling::PrintDeviceDetails | ( | const std::pair< const unsigned short, std::unique_ptr< Device >> & | devicePair | ) |
Definition at line 878 of file ProfilingUtils.cpp.
References CentreAlignFormatting().
Referenced by PrintCounterDirectory().
void ReadBytes | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset, | ||
unsigned int | valueSize, | ||
uint8_t | outValue[] | ||
) |
Definition at line 190 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), and VerifyTimelineEventBinaryPacket().
void ReadBytes | ( | const unsigned char * | buffer, |
unsigned int | offset, | ||
unsigned int | valueSize, | ||
uint8_t | outValue[] | ||
) |
Definition at line 225 of file ProfilingUtils.cpp.
SwTraceMessage ReadSwTraceMessage | ( | const unsigned char * | packetBuffer, |
unsigned int & | offset | ||
) |
Definition at line 320 of file ProfilingUtils.cpp.
References CalculateSizeOfPaddedSwString(), SwTraceMessage::m_ArgNames, SwTraceMessage::m_ArgTypes, SwTraceMessage::m_Id, SwTraceMessage::m_Name, SwTraceMessage::m_UiName, ReadUint32(), and uint32_t_size.
Referenced by BOOST_AUTO_TEST_CASE().
uint16_t ReadUint16 | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset | ||
) |
Definition at line 211 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), and armnn::gatordmock::ReadString().
uint16_t ReadUint16 | ( | const unsigned char * | buffer, |
unsigned int | offset | ||
) |
Definition at line 265 of file ProfilingUtils.cpp.
uint32_t ReadUint32 | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset | ||
) |
Definition at line 204 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), PeriodicCounterSelectionResponseHandler::operator()(), TimelineCaptureCommandHandler::ReadEvent(), TimelineCaptureCommandHandler::ReadLabel(), TimelineCaptureCommandHandler::ReadRelationship(), armnn::gatordmock::ReadString(), ReadSwTraceMessage(), SendTimelinePacketToCommandHandler(), VerifyTimelineEntityBinaryPacketData(), VerifyTimelineEventBinaryPacket(), VerifyTimelineEventClassBinaryPacketData(), VerifyTimelineHeaderBinary(), VerifyTimelineLabelBinaryPacketData(), VerifyTimelineRelationshipBinaryPacketData(), and MockProfilingConnection::WritePacket().
uint32_t ReadUint32 | ( | const unsigned char * | buffer, |
unsigned int | offset | ||
) |
Definition at line 253 of file ProfilingUtils.cpp.
uint64_t ReadUint64 | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset | ||
) |
Definition at line 197 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), TimelineCaptureCommandHandler::ReadEntity(), TimelineCaptureCommandHandler::ReadEvent(), TimelineCaptureCommandHandler::ReadEventClass(), TimelineCaptureCommandHandler::ReadLabel(), TimelineCaptureCommandHandler::ReadRelationship(), VerifyTimelineEntityBinaryPacketData(), VerifyTimelineEventBinaryPacket(), VerifyTimelineEventClassBinaryPacketData(), VerifyTimelineLabelBinaryPacketData(), and VerifyTimelineRelationshipBinaryPacketData().
uint64_t ReadUint64 | ( | const unsigned char * | buffer, |
unsigned int | offset | ||
) |
Definition at line 236 of file ProfilingUtils.cpp.
uint8_t ReadUint8 | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset | ||
) |
Definition at line 218 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), DirectoryCaptureCommandHandler::GetCounterDirectory(), and TimelineCaptureCommandHandler::ReadLabel().
uint8_t ReadUint8 | ( | const unsigned char * | buffer, |
unsigned int | offset | ||
) |
Definition at line 275 of file ProfilingUtils.cpp.
bool armnn::profiling::StringToSwTraceString | ( | const std::string & | s, |
std::vector< uint32_t > & | outputBuffer | ||
) |
Definition at line 94 of file ProfilingUtils.hpp.
References armnn::numeric_cast(), and uint32_t_size.
void armnn::profiling::WriteBytes | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset, | ||
const void * | value, | ||
unsigned int | valueSize | ||
) |
Definition at line 89 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), and WriteTimelineEventBinary().
void WriteBytes | ( | unsigned char * | buffer, |
unsigned int | offset, | ||
const void * | value, | ||
unsigned int | valueSize | ||
) |
Definition at line 140 of file ProfilingUtils.cpp.
void armnn::profiling::WriteBytes | ( | const IPacketBuffer & | packetBuffer, |
unsigned int | offset, | ||
const void * | value, | ||
unsigned int | valueSize | ||
) |
TimelinePacketStatus WriteTimelineEntityBinary | ( | uint64_t | profilingGuid, |
unsigned char * | buffer, | ||
unsigned int | remainingBufferSize, | ||
unsigned int & | numberOfBytesWritten | ||
) |
Definition at line 517 of file ProfilingUtils.cpp.
References BufferExhaustion, Ok, uint32_t_size, WriteUint32(), and WriteUint64().
Referenced by BOOST_AUTO_TEST_CASE(), and SendTimelinePacket::SendTimelineEntityBinaryPacket().
TimelinePacketStatus WriteTimelineEventBinary | ( | uint64_t | timestamp, |
std::thread::id | threadId, | ||
uint64_t | profilingGuid, | ||
unsigned char * | buffer, | ||
unsigned int | remainingBufferSize, | ||
unsigned int & | numberOfBytesWritten | ||
) |
Definition at line 805 of file ProfilingUtils.cpp.
References BufferExhaustion, Ok, uint32_t_size, WriteBytes(), WriteUint32(), and WriteUint64().
Referenced by BOOST_AUTO_TEST_CASE(), and SendTimelinePacket::SendTimelineEventBinaryPacket().
TimelinePacketStatus WriteTimelineEventClassBinary | ( | uint64_t | profilingGuid, |
unsigned char * | buffer, | ||
unsigned int | remainingBufferSize, | ||
unsigned int & | numberOfBytesWritten | ||
) |
Definition at line 761 of file ProfilingUtils.cpp.
References BufferExhaustion, Ok, uint32_t_size, WriteUint32(), and WriteUint64().
Referenced by BOOST_AUTO_TEST_CASE(), and SendTimelinePacket::SendTimelineEventClassBinaryPacket().
TimelinePacketStatus WriteTimelineLabelBinaryPacket | ( | uint64_t | profilingGuid, |
const std::string & | label, | ||
unsigned char * | buffer, | ||
unsigned int | remainingBufferSize, | ||
unsigned int & | numberOfBytesWritten | ||
) |
Definition at line 454 of file ProfilingUtils.cpp.
References BufferExhaustion, Error, armnn::numeric_cast(), Ok, uint32_t_size, WriteUint32(), and WriteUint64().
Referenced by BOOST_AUTO_TEST_CASE(), and SendTimelinePacket::SendTimelineLabelBinaryPacket().
TimelinePacketStatus WriteTimelineMessageDirectoryPackage | ( | unsigned char * | buffer, |
unsigned int | remainingBufferSize, | ||
unsigned int & | numberOfBytesWritten | ||
) |
Definition at line 633 of file ProfilingUtils.cpp.
References BufferExhaustion, CreateTimelinePacketHeader(), Error, armnn::numeric_cast(), Ok, uint32_t_size, WriteUint32(), and WriteUint8().
Referenced by BOOST_AUTO_TEST_CASE(), and SendTimelinePacket::SendTimelineMessageDirectoryPackage().
TimelinePacketStatus WriteTimelineRelationshipBinary | ( | ProfilingRelationshipType | relationshipType, |
uint64_t | relationshipGuid, | ||
uint64_t | headGuid, | ||
uint64_t | tailGuid, | ||
unsigned char * | buffer, | ||
unsigned int | remainingBufferSize, | ||
unsigned int & | numberOfBytesWritten | ||
) |
Definition at line 560 of file ProfilingUtils.cpp.
References BufferExhaustion, DataLink, ExecutionLink, LabelLink, Ok, RetentionLink, uint32_t_size, WriteUint32(), and WriteUint64().
Referenced by BOOST_AUTO_TEST_CASE(), and SendTimelinePacket::SendTimelineRelationshipBinaryPacket().
void WriteUint16 | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset, | ||
uint16_t | value | ||
) |
Definition at line 126 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), FileOnlyProfilingConnection::Close(), ConvertDirectoryComponent(), PacketWriter(), SendCounterPacket::SendPeriodicCounterCapturePacket(), GatordMockService::SendPeriodicCounterSelectionList(), and SendCounterPacket::SendPeriodicCounterSelectionPacket().
void WriteUint16 | ( | unsigned char * | buffer, |
unsigned int | offset, | ||
uint16_t | value | ||
) |
Definition at line 175 of file ProfilingUtils.cpp.
void WriteUint32 | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset, | ||
uint32_t | value | ||
) |
Definition at line 119 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), FileOnlyProfilingConnection::Close(), SendTimelinePacket::Commit(), ConvertDirectoryComponent(), PacketWriter(), SendCounterPacket::SendCounterDirectoryPacket(), SendCounterPacket::SendPeriodicCounterCapturePacket(), GatordMockService::SendPeriodicCounterSelectionList(), SendCounterPacket::SendPeriodicCounterSelectionPacket(), SendCounterPacket::SendStreamMetaDataPacket(), WriteTimelineEntityBinary(), WriteTimelineEventBinary(), WriteTimelineEventClassBinary(), WriteTimelineLabelBinaryPacket(), WriteTimelineMessageDirectoryPackage(), and WriteTimelineRelationshipBinary().
void WriteUint32 | ( | unsigned char * | buffer, |
unsigned int | offset, | ||
uint32_t | value | ||
) |
Definition at line 165 of file ProfilingUtils.cpp.
void armnn::profiling::WriteUint64 | ( | const std::unique_ptr< IPacketBuffer > & | packetBuffer, |
unsigned int | offset, | ||
uint64_t | value | ||
) |
Definition at line 112 of file ProfilingUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), ConvertDirectoryComponent(), SendCounterPacket::SendPeriodicCounterCapturePacket(), WriteTimelineEntityBinary(), WriteTimelineEventBinary(), WriteTimelineEventClassBinary(), WriteTimelineLabelBinaryPacket(), and WriteTimelineRelationshipBinary().
void WriteUint64 | ( | unsigned char * | buffer, |
unsigned int | offset, | ||
uint64_t | value | ||
) |
Definition at line 151 of file ProfilingUtils.cpp.
void armnn::profiling::WriteUint64 | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset, | ||
uint64_t | value | ||
) |
void WriteUint8 | ( | const IPacketBufferPtr & | packetBuffer, |
unsigned int | offset, | ||
uint8_t | value | ||
) |
Definition at line 133 of file ProfilingUtils.cpp.
Referenced by ConvertDirectoryComponent(), and WriteTimelineMessageDirectoryPackage().
void WriteUint8 | ( | unsigned char * | buffer, |
unsigned int | offset, | ||
uint8_t | value | ||
) |
Definition at line 183 of file ProfilingUtils.cpp.
uint32_t uint16_t_size = sizeof(uint16_t) |
Definition at line 20 of file DirectoryCaptureCommandHandler.cpp.
Referenced by FileOnlyProfilingConnection::Close(), armnn::gatordmock::ReadString(), SendCounterPacket::SendPeriodicCounterCapturePacket(), and SendCounterPacket::SendPeriodicCounterSelectionPacket().
uint32_t uint32_t_size = sizeof(uint32_t) |
Definition at line 21 of file DirectoryCaptureCommandHandler.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), CalculateSizeOfPaddedSwString(), FileOnlyProfilingConnection::Close(), SendCounterPacket::CreateCategoryRecord(), SendCounterPacket::CreateEventRecord(), OffsetToNextWord(), armnn::gatordmock::ReadString(), ReadSwTraceMessage(), SendCounterPacket::SendCounterDirectoryPacket(), SendCounterPacket::SendPeriodicCounterCapturePacket(), SendCounterPacket::SendPeriodicCounterSelectionPacket(), SendTimelinePacketToCommandHandler(), StringToSwTraceString(), VerifyTimelineEntityBinaryPacketData(), VerifyTimelineEventBinaryPacket(), VerifyTimelineEventClassBinaryPacketData(), VerifyTimelineHeaderBinary(), VerifyTimelineLabelBinaryPacketData(), VerifyTimelineRelationshipBinaryPacketData(), WriteTimelineEntityBinary(), WriteTimelineEventBinary(), WriteTimelineEventClassBinary(), WriteTimelineLabelBinaryPacket(), WriteTimelineMessageDirectoryPackage(), and WriteTimelineRelationshipBinary().