21.11
|
#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 () |
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 |
Definition at line 30 of file SendCounterPacket.hpp.
References SendCounterPacket::CreateCategoryRecord(), SendCounterPacket::CreateCounterSetRecord(), SendCounterPacket::CreateDeviceRecord(), SendCounterPacket::CreateEventRecord(), IBufferManager::FlushReadList(), IBufferManager::Release(), SendCounterPacket::SendCounterDirectoryPacket(), SendCounterPacket::SendPeriodicCounterCapturePacket(), SendCounterPacket::SendPeriodicCounterSelectionPacket(), and SendCounterPacket::SendStreamMetaDataPacket().
|
protected |
Definition at line 173 of file SendCounterPacket.cpp.
References ARMNN_ASSERT, 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::SendCounterPacket().
|
protected |
Definition at line 346 of file SendCounterPacket.cpp.
References ARMNN_ASSERT.
Referenced by SendCounterPacketTest::CreateCounterSetRecordTest(), and SendCounterPacket::SendCounterPacket().
|
protected |
Definition at line 296 of file SendCounterPacket.cpp.
References ARMNN_ASSERT.
Referenced by SendCounterPacketTest::CreateDeviceRecordTest(), and SendCounterPacket::SendCounterPacket().
|
protected |
Definition at line 396 of file SendCounterPacket.cpp.
References ARMNN_ASSERT, ARMNN_NO_CONVERSION_WARN_BEGIN, ARMNN_NO_CONVERSION_WARN_END, armnn::numeric_cast(), and armnn::profiling::uint32_t_size.
Referenced by SendCounterPacket::CreateCategoryRecord(), SendCounterPacketTest::CreateEventRecordTest(), and SendCounterPacket::SendCounterPacket().
|
overridevirtual |
Create and write a CounterDirectoryPacket from the parameters to the buffer.
Implements ISendCounterPacket.
Definition at line 548 of file SendCounterPacket.cpp.
References ICounterDirectory::GetCategoryCount(), ICounterDirectory::GetCounterSetCount(), ICounterDirectory::GetDeviceCount(), and armnn::profiling::uint32_t_size.
Referenced by SendCounterPacket::SendCounterPacket(), and TEST_SUITE().
|
overridevirtual |
Create and write a PeriodicCounterCapturePacket from the parameters to the buffer.
Implements ISendCounterPacket.
Definition at line 828 of file SendCounterPacket.cpp.
References IBufferManager::Commit(), armnn::numeric_cast(), IBufferManager::Reserve(), armnn::profiling::uint16_t_size, armnn::profiling::uint32_t_size, armnn::profiling::WriteUint16(), armnn::profiling::WriteUint32(), and armnn::profiling::WriteUint64().
Referenced by SendCounterPacket::SendCounterPacket(), and TEST_SUITE().
|
overridevirtual |
Create and write a PeriodicCounterSelectionPacket from the parameters to the buffer.
Implements ISendCounterPacket.
Definition at line 878 of file SendCounterPacket.cpp.
References IBufferManager::Commit(), armnn::numeric_cast(), IBufferManager::Reserve(), armnn::profiling::uint16_t_size, armnn::profiling::uint32_t_size, armnn::profiling::WriteUint16(), and armnn::profiling::WriteUint32().
Referenced by SendCounterPacket::SendCounterPacket(), and TEST_SUITE().
|
overridevirtual |
Create and write a StreamMetaDataPacket in the buffer.
Implements ISendCounterPacket.
Definition at line 27 of file SendCounterPacket.cpp.
References IBufferManager::Commit(), armnn::profiling::ConstructHeader(), armnnUtils::Processes::GetCurrentId(), armnn::profiling::GetHardwareVersion(), armnn::profiling::GetProcessName(), armnn::profiling::GetSoftwareInfo(), armnn::profiling::GetSoftwareVersion(), armnn::info, MAX_METADATA_PACKET_LENGTH, armnn::numeric_cast(), IBufferManager::Reserve(), and armnn::profiling::WriteUint32().
Referenced by SendCounterPacket::SendCounterPacket(), and TEST_SUITE().