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

Method MarkEntityWithLabel

profiling/client/src/TimelineUtilityMethods.cpp:188–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void TimelineUtilityMethods::MarkEntityWithLabel(ProfilingGuid entityGuid,
189 const std::string& labelName,
190 ProfilingStaticGuid labelTypeGuid)
191{
192 // Check that the label name is valid
193 if (labelName.empty())
194 {
195 // The label name is invalid
196 throw arm::pipe::InvalidArgumentException("Invalid entity name, the entity name cannot be empty");
197 }
198
199 // Declare a label with the label's name, this call throws in case of error
200 ProfilingStaticGuid labelGuid = DeclareLabel(labelName);
201
202 // Generate a GUID for the label relationship
203 ProfilingDynamicGuid relationshipGuid = IProfilingService::GetNextGuid();
204
205 // Send the new label link to the external profiling service, this call throws in case of error
206 m_SendTimelinePacket->SendTimelineRelationshipBinaryPacket(ProfilingRelationshipType::LabelLink,
207 relationshipGuid,
208 entityGuid,
209 labelGuid,
210 labelTypeGuid);
211}
212
213void TimelineUtilityMethods::MarkEntityWithType(ProfilingGuid entityGuid,
214 ProfilingStaticGuid typeNameGuid)

Callers 3

AddWorkloadStructureFunction · 0.80
LoadedNetworkMethod · 0.80

Calls 3

emptyMethod · 0.80

Tested by

no test coverage detected