20.02
|
#include <SendCounterPacket.hpp>
Public Types | |
using | CategoryRecord = std::vector< uint32_t > |
using | DeviceRecord = std::vector< uint32_t > |
using | CounterSetRecord = std::vector< uint32_t > |
using | EventRecord = std::vector< uint32_t > |
using | IndexValuePairsVector = std::vector< CounterValue > |
Public Types inherited from ISendCounterPacket | |
using | IndexValuePairsVector = std::vector< CounterValue > |
Public Member Functions | |
SendCounterPacket (IBufferManager &buffer) | |
void | SendStreamMetaDataPacket () override |
Create and write a StreamMetaDataPacket in the buffer. More... | |
void | SendCounterDirectoryPacket (const ICounterDirectory &counterDirectory) override |
Create and write a CounterDirectoryPacket from the parameters to the buffer. More... | |
void | SendPeriodicCounterCapturePacket (uint64_t timestamp, const IndexValuePairsVector &values) override |
Create and write a PeriodicCounterCapturePacket from the parameters to the buffer. More... | |
void | SendPeriodicCounterSelectionPacket (uint32_t capturePeriod, const std::vector< uint16_t > &selectedCounterIds) override |
Create and write a PeriodicCounterSelectionPacket from the parameters to the buffer. More... | |
Public Member Functions inherited from ISendCounterPacket | |
virtual | ~ISendCounterPacket () |
Static Public Attributes | |
static const unsigned int | PIPE_MAGIC = 0x45495434 |
Protected Member Functions | |
bool | CreateCategoryRecord (const CategoryPtr &category, const Counters &counters, CategoryRecord &categoryRecord, std::string &errorMessage) |
bool | CreateDeviceRecord (const DevicePtr &device, DeviceRecord &deviceRecord, std::string &errorMessage) |
bool | CreateCounterSetRecord (const CounterSetPtr &counterSet, CounterSetRecord &counterSetRecord, std::string &errorMessage) |
bool | CreateEventRecord (const CounterPtr &counter, EventRecord &eventRecord, std::string &errorMessage) |
Definition at line 21 of file SendCounterPacket.hpp.
using CategoryRecord = std::vector<uint32_t> |
Definition at line 24 of file SendCounterPacket.hpp.
using CounterSetRecord = std::vector<uint32_t> |
Definition at line 26 of file SendCounterPacket.hpp.
using DeviceRecord = std::vector<uint32_t> |
Definition at line 25 of file SendCounterPacket.hpp.
using EventRecord = std::vector<uint32_t> |
Definition at line 27 of file SendCounterPacket.hpp.
using IndexValuePairsVector = std::vector<CounterValue> |
Definition at line 28 of file SendCounterPacket.hpp.
|
inline |
|
protected |
Definition at line 174 of file SendCounterPacket.cpp.
References ARMNN_NO_CONVERSION_WARN_BEGIN, ARMNN_NO_CONVERSION_WARN_END, SendCounterPacket::CreateEventRecord(), armnn::numeric_cast(), and armnn::profiling::uint32_t_size.
Referenced by SendCounterPacketTest::CreateCategoryRecordTest(), and SendCounterPacket::SendCounterDirectoryPacket().
|
protected |
Definition at line 325 of file SendCounterPacket.cpp.
Referenced by SendCounterPacketTest::CreateCounterSetRecordTest(), and SendCounterPacket::SendCounterDirectoryPacket().
|
protected |
Definition at line 275 of file SendCounterPacket.cpp.
Referenced by SendCounterPacketTest::CreateDeviceRecordTest(), and SendCounterPacket::SendCounterDirectoryPacket().
|
protected |
Definition at line 376 of file SendCounterPacket.cpp.
References ARMNN_NO_CONVERSION_WARN_BEGIN, ARMNN_NO_CONVERSION_WARN_END, armnn::numeric_cast(), and armnn::profiling::uint32_t_size.
Referenced by SendCounterPacket::CreateCategoryRecord(), and SendCounterPacketTest::CreateEventRecordTest().
|
overridevirtual |
Create and write a CounterDirectoryPacket from the parameters to the buffer.
Implements ISendCounterPacket.
Definition at line 528 of file SendCounterPacket.cpp.
References ARMNN_NO_CONVERSION_WARN_BEGIN, ARMNN_NO_CONVERSION_WARN_END, SendCounterPacket::CreateCategoryRecord(), SendCounterPacket::CreateCounterSetRecord(), SendCounterPacket::CreateDeviceRecord(), ICounterDirectory::GetCategories(), ICounterDirectory::GetCategoryCount(), ICounterDirectory::GetCounters(), ICounterDirectory::GetCounterSetCount(), ICounterDirectory::GetCounterSets(), ICounterDirectory::GetDeviceCount(), ICounterDirectory::GetDevices(), armnn::numeric_cast(), armnn::profiling::uint32_t_size, and armnn::profiling::WriteUint32().
Referenced by BOOST_AUTO_TEST_CASE(), and SendCounterPacket::SendCounterPacket().
|
overridevirtual |
Create and write a PeriodicCounterCapturePacket from the parameters to the buffer.
Implements ISendCounterPacket.
Definition at line 802 of file SendCounterPacket.cpp.
References armnn::numeric_cast(), armnn::profiling::uint16_t_size, armnn::profiling::uint32_t_size, armnn::profiling::WriteUint16(), armnn::profiling::WriteUint32(), and armnn::profiling::WriteUint64().
Referenced by BOOST_AUTO_TEST_CASE(), and SendCounterPacket::SendCounterPacket().
|
overridevirtual |
Create and write a PeriodicCounterSelectionPacket from the parameters to the buffer.
Implements ISendCounterPacket.
Definition at line 852 of file SendCounterPacket.cpp.
References armnn::numeric_cast(), armnn::profiling::uint16_t_size, armnn::profiling::uint32_t_size, armnn::profiling::WriteUint16(), and armnn::profiling::WriteUint32().
Referenced by BOOST_AUTO_TEST_CASE(), and SendCounterPacket::SendCounterPacket().
|
overridevirtual |
Create and write a StreamMetaDataPacket in the buffer.
Implements ISendCounterPacket.
Definition at line 29 of file SendCounterPacket.cpp.
References IBufferManager::Commit(), armnn::profiling::EncodeVersion(), armnnUtils::Processes::GetCurrentId(), armnn::profiling::GetHardwareVersion(), armnn::profiling::GetProcessName(), armnn::profiling::GetSoftwareInfo(), armnn::profiling::GetSoftwareVersion(), armnn::info, MAX_METADATA_PACKET_LENGTH, armnn::numeric_cast(), SendCounterPacket::PIPE_MAGIC, IBufferManager::Reserve(), and armnn::profiling::WriteUint32().
Referenced by BOOST_AUTO_TEST_CASE(), and SendCounterPacket::SendCounterPacket().
|
static |
Definition at line 43 of file SendCounterPacket.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), and SendCounterPacket::SendStreamMetaDataPacket().