MCPcopy Create free account
hub / github.com/ARM-software/armnn / GetStreamMetaDataPacketSize

Function GetStreamMetaDataPacketSize

src/profiling/test/ProfilingTestUtils.cpp:26–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include <doctest/doctest.h>
25
26uint32_t GetStreamMetaDataPacketSize()
27{
28 uint32_t sizeUint32 = sizeof(uint32_t);
29 uint32_t payloadSize = 0;
30 payloadSize += arm::pipe::numeric_cast<uint32_t>(arm::pipe::ARMNN_SOFTWARE_INFO.size()) + 1;
31 payloadSize += arm::pipe::numeric_cast<uint32_t>(arm::pipe::ARMNN_HARDWARE_VERSION.size()) + 1;
32 payloadSize += arm::pipe::numeric_cast<uint32_t>(arm::pipe::ARMNN_SOFTWARE_VERSION.size()) + 1;
33 payloadSize += arm::pipe::numeric_cast<uint32_t>(GetProcessName().size()) + 1;
34
35 // Add packetVersionEntries
36 payloadSize += 13 * 2 * sizeUint32;
37 // Add packetVersionCountSize
38 payloadSize += sizeUint32;
39
40 uint32_t headerSize = 2 * sizeUint32;
41 uint32_t bodySize = 10 * sizeUint32;
42
43 return headerSize + bodySize + payloadSize;
44}
45
46std::vector<BackendId> GetSuitableBackendRegistered()
47{

Callers 2

ProfilingTests.cppFile · 0.85

Calls 2

GetProcessNameFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected