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

Method DeclareLabel

profiling/client/src/TimelineUtilityMethods.cpp:170–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170ProfilingStaticGuid TimelineUtilityMethods::DeclareLabel(const std::string& labelName)
171{
172 // Check that the label name is valid
173 if (labelName.empty())
174 {
175 // The label name is invalid
176 throw arm::pipe::InvalidArgumentException("Invalid label name, the label name cannot be empty");
177 }
178
179 // Generate a static GUID for the given label name
180 ProfilingStaticGuid labelGuid = IProfilingService::GetStaticId(labelName);
181
182 // Send the new label to the external profiling service, this call throws in case of error
183 m_SendTimelinePacket->SendTimelineLabelBinaryPacket(labelGuid, labelName);
184
185 return labelGuid;
186}
187
188void TimelineUtilityMethods::MarkEntityWithLabel(ProfilingGuid entityGuid,
189 const std::string& labelName,

Callers 1

Calls 3

emptyMethod · 0.80

Tested by

no test coverage detected