20.11
|
#include <CounterDirectory.hpp>
Public Member Functions | |
CounterDirectory ()=default | |
~CounterDirectory ()=default | |
const Category * | RegisterCategory (const std::string &categoryName) override |
const Device * | RegisterDevice (const std::string &deviceName, uint16_t cores=0, const Optional< std::string > &parentCategoryName=EmptyOptional()) override |
const CounterSet * | RegisterCounterSet (const std::string &counterSetName, uint16_t count=0, const Optional< std::string > &parentCategoryName=EmptyOptional()) override |
const Counter * | RegisterCounter (const BackendId &backendId, const uint16_t uid, const std::string &parentCategoryName, uint16_t counterClass, uint16_t interpolation, double multiplier, const std::string &name, const std::string &description, const Optional< std::string > &units=EmptyOptional(), const Optional< uint16_t > &numberOfCores=EmptyOptional(), const Optional< uint16_t > &deviceUid=EmptyOptional(), const Optional< uint16_t > &counterSetUid=EmptyOptional()) override |
uint16_t | GetCategoryCount () const override |
uint16_t | GetDeviceCount () const override |
uint16_t | GetCounterSetCount () const override |
uint16_t | GetCounterCount () const override |
const Categories & | GetCategories () const override |
const Devices & | GetDevices () const override |
const CounterSets & | GetCounterSets () const override |
const Counters & | GetCounters () const override |
const Category * | GetCategory (const std::string &name) const override |
const Device * | GetDevice (uint16_t uid) const override |
const CounterSet * | GetCounterSet (uint16_t uid) const override |
const Counter * | GetCounter (uint16_t uid) const override |
bool | IsCategoryRegistered (const std::string &categoryName) const |
bool | IsDeviceRegistered (uint16_t deviceUid) const |
bool | IsDeviceRegistered (const std::string &deviceName) const |
bool | IsCounterSetRegistered (uint16_t counterSetUid) const |
bool | IsCounterSetRegistered (const std::string &counterSetName) const |
bool | IsCounterRegistered (uint16_t counterUid) const |
bool | IsCounterRegistered (const std::string &counterName) const |
void | Clear () |
![]() | |
virtual | ~ICounterDirectory () |
![]() | |
virtual | ~ICounterRegistry () |
Definition at line 23 of file CounterDirectory.hpp.
|
default |
|
default |
void Clear | ( | ) |
Definition at line 438 of file CounterDirectory.cpp.
References ARMNN_ASSERT, OptionalBase::has_value(), and OptionalReferenceSwitch< std::is_reference< T >::value, T >::value().
Referenced by CounterDirectory::GetCounters(), and ProfilingService::GetSendTimelinePacket().
|
inlineoverridevirtual |
Implements ICounterDirectory.
Definition at line 57 of file CounterDirectory.hpp.
|
overridevirtual |
Implements ICounterDirectory.
Definition at line 329 of file CounterDirectory.cpp.
References ARMNN_ASSERT.
Referenced by BOOST_AUTO_TEST_CASE(), and CounterDirectory::GetCounters().
|
inlineoverridevirtual |
Implements ICounterDirectory.
Definition at line 51 of file CounterDirectory.hpp.
References armnn::numeric_cast().
Referenced by BOOST_AUTO_TEST_CASE().
|
overridevirtual |
Implements ICounterDirectory.
Definition at line 373 of file CounterDirectory.cpp.
References ARMNN_ASSERT, Counter::m_MaxCounterUid, and Counter::m_Uid.
Referenced by BOOST_AUTO_TEST_CASE(), CounterDirectory::GetCounters(), and CounterDirectory::RegisterCounter().
|
inlineoverridevirtual |
Implements ICounterDirectory.
Definition at line 54 of file CounterDirectory.hpp.
References armnn::numeric_cast().
Referenced by BOOST_AUTO_TEST_CASE(), and ProfilingService::GetCounterCount().
|
inlineoverridevirtual |
Implements ICounterDirectory.
Definition at line 60 of file CounterDirectory.hpp.
References CounterDirectory::Clear(), CounterDirectory::GetCategory(), CounterDirectory::GetCounter(), CounterDirectory::GetCounterSet(), CounterDirectory::GetDevice(), CounterDirectory::IsCategoryRegistered(), CounterDirectory::IsCounterRegistered(), CounterDirectory::IsCounterSetRegistered(), and CounterDirectory::IsDeviceRegistered().
|
overridevirtual |
Implements ICounterDirectory.
Definition at line 358 of file CounterDirectory.cpp.
References ARMNN_ASSERT, and CounterSet::m_Uid.
Referenced by BOOST_AUTO_TEST_CASE(), and CounterDirectory::GetCounters().
|
inlineoverridevirtual |
Implements ICounterDirectory.
Definition at line 53 of file CounterDirectory.hpp.
References armnn::numeric_cast().
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineoverridevirtual |
Implements ICounterDirectory.
Definition at line 59 of file CounterDirectory.hpp.
|
overridevirtual |
Implements ICounterDirectory.
Definition at line 343 of file CounterDirectory.cpp.
References ARMNN_ASSERT, and Device::m_Uid.
Referenced by BOOST_AUTO_TEST_CASE(), and CounterDirectory::GetCounters().
|
inlineoverridevirtual |
Implements ICounterDirectory.
Definition at line 52 of file CounterDirectory.hpp.
References armnn::numeric_cast().
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineoverridevirtual |
Implements ICounterDirectory.
Definition at line 58 of file CounterDirectory.hpp.
bool IsCategoryRegistered | ( | const std::string & | categoryName | ) | const |
Definition at line 389 of file CounterDirectory.cpp.
Referenced by CounterDirectory::GetCounters(), ProfilingService::GetSendTimelinePacket(), and CounterDirectory::RegisterCategory().
bool IsCounterRegistered | ( | uint16_t | counterUid | ) | const |
Definition at line 424 of file CounterDirectory.cpp.
Referenced by CounterDirectory::GetCounters(), ProfilingService::GetSendTimelinePacket(), and ProfilingService::IsCounterRegistered().
bool IsCounterRegistered | ( | const std::string & | counterName | ) | const |
Definition at line 431 of file CounterDirectory.cpp.
bool IsCounterSetRegistered | ( | uint16_t | counterSetUid | ) | const |
Definition at line 410 of file CounterDirectory.cpp.
Referenced by CounterDirectory::GetCounters(), CounterDirectory::RegisterCounter(), and CounterDirectory::RegisterCounterSet().
bool IsCounterSetRegistered | ( | const std::string & | counterSetName | ) | const |
Definition at line 417 of file CounterDirectory.cpp.
bool IsDeviceRegistered | ( | uint16_t | deviceUid | ) | const |
Definition at line 396 of file CounterDirectory.cpp.
Referenced by CounterDirectory::GetCounters(), and CounterDirectory::RegisterDevice().
bool IsDeviceRegistered | ( | const std::string & | deviceName | ) | const |
Definition at line 403 of file CounterDirectory.cpp.
|
overridevirtual |
Implements ICounterRegistry.
Definition at line 23 of file CounterDirectory.cpp.
References ARMNN_ASSERT, and CounterDirectory::IsCategoryRegistered().
Referenced by BOOST_AUTO_TEST_CASE(), and ProfilingService::GetSendTimelinePacket().
|
overridevirtual |
Implements ICounterRegistry.
Definition at line 181 of file CounterDirectory.cpp.
References ARMNN_ASSERT, CounterDirectory::GetCounter(), armnn::profiling::GetNextCounterUids(), OptionalBase::has_value(), armnn::IgnoreUnused(), CounterDirectory::IsCounterSetRegistered(), Counter::m_Name, OptionalReferenceSwitch< std::is_reference< T >::value, T >::value(), and OptionalReferenceSwitch< IsReference, T >::value().
Referenced by BOOST_AUTO_TEST_CASE(), and ProfilingService::GetSendTimelinePacket().
|
overridevirtual |
Implements ICounterRegistry.
Definition at line 114 of file CounterDirectory.cpp.
References ARMNN_ASSERT, armnn::profiling::GetNextUid(), OptionalBase::has_value(), CounterDirectory::IsCounterSetRegistered(), and OptionalReferenceSwitch< IsReference, T >::value().
Referenced by BOOST_AUTO_TEST_CASE().
|
overridevirtual |
Implements ICounterRegistry.
Definition at line 53 of file CounterDirectory.cpp.
References ARMNN_ASSERT, armnn::profiling::GetNextUid(), OptionalBase::has_value(), CounterDirectory::IsDeviceRegistered(), and OptionalReferenceSwitch< IsReference, T >::value().
Referenced by BOOST_AUTO_TEST_CASE().