21.05
|
#include <TimelineUtilityMethods.hpp>
Static Public Member Functions | |
static std::unique_ptr< TimelineUtilityMethods > | GetTimelineUtils (ProfilingService &profilingService) |
static void | SendWellKnownLabelsAndEventClasses (ISendTimelinePacket &timelinePacket) |
Definition at line 19 of file TimelineUtilityMethods.hpp.
|
inline |
Definition at line 27 of file TimelineUtilityMethods.hpp.
Referenced by TimelineUtilityMethods::TimelineUtilityMethods().
|
inline |
Definition at line 31 of file TimelineUtilityMethods.hpp.
References TimelineUtilityMethods::CreateConnectionRelationship(), TimelineUtilityMethods::CreateNamedTypedChildEntity(), TimelineUtilityMethods::CreateNamedTypedEntity(), TimelineUtilityMethods::CreateRelationship(), TimelineUtilityMethods::CreateTypedEntity(), TimelineUtilityMethods::DeclareLabel(), TimelineUtilityMethods::MarkEntityWithLabel(), TimelineUtilityMethods::MarkEntityWithType(), TimelineUtilityMethods::NameEntity(), TimelineUtilityMethods::operator=(), TimelineUtilityMethods::RecordEndOfLifeEvent(), TimelineUtilityMethods::RecordEvent(), TimelineUtilityMethods::RecordWorkloadInferenceAndStartOfLifeEvent(), TimelineUtilityMethods::SendWellKnownLabelsAndEventClasses(), TimelineUtilityMethods::TimelineUtilityMethods(), TimelineUtilityMethods::TypeEntity(), and TimelineUtilityMethods::~TimelineUtilityMethods().
|
delete |
|
default |
Referenced by TimelineUtilityMethods::TimelineUtilityMethods().
|
inline |
Definition at line 92 of file TimelineUtilityMethods.hpp.
ProfilingDynamicGuid CreateConnectionRelationship | ( | ProfilingRelationshipType | relationshipType, |
ProfilingGuid | headGuid, | ||
ProfilingGuid | tailGuid | ||
) |
Definition at line 344 of file TimelineUtilityMethods.cpp.
References LabelsAndEventClasses::CONNECTION_GUID, and ProfilingService::GetNextGuid().
Referenced by TimelineUtilityMethods::TimelineUtilityMethods().
ProfilingDynamicGuid CreateNamedTypedChildEntity | ( | ProfilingGuid | parentEntityGuid, |
const std::string & | entityName, | ||
const std::string & | entityType | ||
) |
Definition at line 234 of file TimelineUtilityMethods.cpp.
References TimelineUtilityMethods::CreateNamedTypedEntity(), LabelsAndEventClasses::EMPTY_GUID, ProfilingService::GetNextGuid(), and armnn::profiling::RetentionLink.
Referenced by TimelineUtilityMethods::TimelineUtilityMethods().
void CreateNamedTypedChildEntity | ( | ProfilingGuid | entityGuid, |
ProfilingGuid | parentEntityGuid, | ||
const std::string & | entityName, | ||
const std::string & | entityType | ||
) |
Definition at line 268 of file TimelineUtilityMethods.cpp.
References LabelsAndEventClasses::CHILD_GUID, TimelineUtilityMethods::CreateNamedTypedEntity(), ProfilingService::GetNextGuid(), and armnn::profiling::RetentionLink.
void CreateNamedTypedChildEntity | ( | ProfilingGuid | entityGuid, |
ProfilingGuid | parentEntityGuid, | ||
const std::string & | entityName, | ||
ProfilingStaticGuid | typeGuid | ||
) |
Definition at line 301 of file TimelineUtilityMethods.cpp.
References LabelsAndEventClasses::CHILD_GUID, TimelineUtilityMethods::CreateNamedTypedEntity(), ProfilingService::GetNextGuid(), and armnn::profiling::RetentionLink.
ProfilingDynamicGuid CreateNamedTypedEntity | ( | const std::string & | name, |
const std::string & | type | ||
) |
Definition at line 99 of file TimelineUtilityMethods.cpp.
References ProfilingService::GetNextGuid().
Referenced by TimelineUtilityMethods::CreateNamedTypedChildEntity(), and TimelineUtilityMethods::TimelineUtilityMethods().
void CreateNamedTypedEntity | ( | ProfilingGuid | entityGuid, |
const std::string & | name, | ||
const std::string & | type | ||
) |
Definition at line 121 of file TimelineUtilityMethods.cpp.
References TimelineUtilityMethods::NameEntity(), and TimelineUtilityMethods::TypeEntity().
void CreateNamedTypedEntity | ( | ProfilingGuid | entityGuid, |
const std::string & | name, | ||
ProfilingStaticGuid | typeGuid | ||
) |
Definition at line 147 of file TimelineUtilityMethods.cpp.
References TimelineUtilityMethods::MarkEntityWithType(), and TimelineUtilityMethods::NameEntity().
ProfilingDynamicGuid CreateRelationship | ( | ProfilingRelationshipType | relationshipType, |
ProfilingGuid | headGuid, | ||
ProfilingGuid | tailGuid, | ||
ProfilingGuid | relationshipCategory | ||
) |
Definition at line 327 of file TimelineUtilityMethods.cpp.
References ProfilingService::GetNextGuid().
Referenced by TimelineUtilityMethods::RecordWorkloadInferenceAndStartOfLifeEvent(), and TimelineUtilityMethods::TimelineUtilityMethods().
void CreateTypedEntity | ( | ProfilingGuid | entityGuid, |
ProfilingStaticGuid | typeGuid | ||
) |
Definition at line 360 of file TimelineUtilityMethods.cpp.
References TimelineUtilityMethods::MarkEntityWithType().
Referenced by TimelineUtilityMethods::RecordWorkloadInferenceAndStartOfLifeEvent(), and TimelineUtilityMethods::TimelineUtilityMethods().
ProfilingStaticGuid DeclareLabel | ( | const std::string & | labelName | ) |
Definition at line 167 of file TimelineUtilityMethods.cpp.
References ProfilingService::GetStaticId().
Referenced by TimelineUtilityMethods::MarkEntityWithLabel(), and TimelineUtilityMethods::TimelineUtilityMethods().
|
static |
Definition at line 15 of file TimelineUtilityMethods.cpp.
References armnn::profiling::Active, ProfilingService::GetCurrentState(), ProfilingService::GetSendTimelinePacket(), and ProfilingService::IsTimelineReportingEnabled().
Referenced by LoadedNetwork::EnqueueWorkload(), LoadedNetwork::Execute(), LoadedNetwork::MakeLoadedNetwork(), LoadedNetwork::SendNetworkStructure(), and RuntimeImpl::UnloadNetwork().
void MarkEntityWithLabel | ( | ProfilingGuid | entityGuid, |
const std::string & | labelName, | ||
ProfilingStaticGuid | labelLinkGuid | ||
) |
Definition at line 185 of file TimelineUtilityMethods.cpp.
References TimelineUtilityMethods::DeclareLabel(), ProfilingService::GetNextGuid(), and armnn::profiling::LabelLink.
Referenced by TimelineUtilityMethods::NameEntity(), TimelineUtilityMethods::TimelineUtilityMethods(), and TimelineUtilityMethods::TypeEntity().
void MarkEntityWithType | ( | ProfilingGuid | entityGuid, |
ProfilingStaticGuid | typeNameGuid | ||
) |
Definition at line 210 of file TimelineUtilityMethods.cpp.
References ProfilingService::GetNextGuid(), armnn::profiling::LabelLink, and LabelsAndEventClasses::TYPE_GUID.
Referenced by TimelineUtilityMethods::CreateNamedTypedEntity(), TimelineUtilityMethods::CreateTypedEntity(), and TimelineUtilityMethods::TimelineUtilityMethods().
void NameEntity | ( | ProfilingGuid | entityGuid, |
const std::string & | name | ||
) |
Definition at line 224 of file TimelineUtilityMethods.cpp.
References TimelineUtilityMethods::MarkEntityWithLabel(), and LabelsAndEventClasses::NAME_GUID.
Referenced by TimelineUtilityMethods::CreateNamedTypedEntity(), and TimelineUtilityMethods::TimelineUtilityMethods().
|
delete |
Referenced by TimelineUtilityMethods::TimelineUtilityMethods().
|
default |
void RecordEndOfLifeEvent | ( | ProfilingGuid | entityGuid | ) |
Definition at line 413 of file TimelineUtilityMethods.cpp.
References LabelsAndEventClasses::ARMNN_PROFILING_EOL_EVENT_CLASS, and TimelineUtilityMethods::RecordEvent().
Referenced by TimelineUtilityMethods::TimelineUtilityMethods().
ProfilingDynamicGuid RecordEvent | ( | ProfilingGuid | entityGuid, |
ProfilingStaticGuid | eventClassGuid | ||
) |
Definition at line 369 of file TimelineUtilityMethods.cpp.
References armnn::profiling::ExecutionLink, armnnUtils::Threads::GetCurrentThreadId(), ProfilingService::GetNextGuid(), and armnn::profiling::GetTimestamp().
Referenced by TimelineUtilityMethods::RecordEndOfLifeEvent(), TimelineUtilityMethods::RecordWorkloadInferenceAndStartOfLifeEvent(), and TimelineUtilityMethods::TimelineUtilityMethods().
ProfilingDynamicGuid RecordWorkloadInferenceAndStartOfLifeEvent | ( | ProfilingGuid | workloadGuid, |
ProfilingGuid | inferenceGuid | ||
) |
Definition at line 396 of file TimelineUtilityMethods.cpp.
References LabelsAndEventClasses::ARMNN_PROFILING_SOL_EVENT_CLASS, LabelsAndEventClasses::CHILD_GUID, TimelineUtilityMethods::CreateRelationship(), TimelineUtilityMethods::CreateTypedEntity(), LabelsAndEventClasses::EXECUTION_OF_GUID, ProfilingService::GetNextGuid(), TimelineUtilityMethods::RecordEvent(), armnn::profiling::RetentionLink, and LabelsAndEventClasses::WORKLOAD_EXECUTION_GUID.
Referenced by TimelineUtilityMethods::TimelineUtilityMethods().
|
static |
Definition at line 30 of file TimelineUtilityMethods.cpp.
References LabelsAndEventClasses::ARMNN_PROFILING_EOL_EVENT_CLASS, LabelsAndEventClasses::ARMNN_PROFILING_EOL_EVENT_CLASS_NAME, LabelsAndEventClasses::ARMNN_PROFILING_EOL_EVENT_CLASS_NAME_GUID, LabelsAndEventClasses::ARMNN_PROFILING_SOL_EVENT_CLASS, LabelsAndEventClasses::ARMNN_PROFILING_SOL_EVENT_CLASS_NAME, LabelsAndEventClasses::ARMNN_PROFILING_SOL_EVENT_CLASS_NAME_GUID, LabelsAndEventClasses::BACKENDID_GUID, LabelsAndEventClasses::BACKENDID_LABEL, LabelsAndEventClasses::CHILD_GUID, LabelsAndEventClasses::CHILD_LABEL, ISendTimelinePacket::Commit(), LabelsAndEventClasses::CONNECTION, LabelsAndEventClasses::CONNECTION_GUID, LabelsAndEventClasses::EXECUTION_OF_GUID, LabelsAndEventClasses::EXECUTION_OF_LABEL, LabelsAndEventClasses::INDEX_GUID, LabelsAndEventClasses::INDEX_LABEL, LabelsAndEventClasses::INFERENCE, LabelsAndEventClasses::INFERENCE_GUID, LabelsAndEventClasses::LAYER, LabelsAndEventClasses::LAYER_GUID, LabelsAndEventClasses::NAME_GUID, LabelsAndEventClasses::NAME_LABEL, LabelsAndEventClasses::NETWORK, LabelsAndEventClasses::NETWORK_GUID, LabelsAndEventClasses::PROCESS_ID_GUID, LabelsAndEventClasses::PROCESS_ID_LABEL, ISendTimelinePacket::SendTimelineEventClassBinaryPacket(), ISendTimelinePacket::SendTimelineLabelBinaryPacket(), LabelsAndEventClasses::TYPE_GUID, LabelsAndEventClasses::TYPE_LABEL, LabelsAndEventClasses::WORKLOAD, LabelsAndEventClasses::WORKLOAD_EXECUTION, LabelsAndEventClasses::WORKLOAD_EXECUTION_GUID, and LabelsAndEventClasses::WORKLOAD_GUID.
Referenced by BOOST_AUTO_TEST_CASE(), ActivateTimelineReportingCommandHandler::operator()(), ConnectionAcknowledgedCommandHandler::operator()(), and TimelineUtilityMethods::TimelineUtilityMethods().
void TypeEntity | ( | ProfilingGuid | entityGuid, |
const std::string & | type | ||
) |
Definition at line 229 of file TimelineUtilityMethods.cpp.
References TimelineUtilityMethods::MarkEntityWithLabel(), and LabelsAndEventClasses::TYPE_GUID.
Referenced by TimelineUtilityMethods::CreateNamedTypedEntity(), and TimelineUtilityMethods::TimelineUtilityMethods().