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

Method HandleExecutionLink

src/profiling/test/TimelineModel.cpp:226–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void TimelineModel::HandleExecutionLink(const arm::pipe::ITimelineDecoder::Relationship& relationship)
227{
228 // entityGuid,
229 Entity* parentEntity = FindEntity(relationship.m_HeadGuid);
230 if (parentEntity == nullptr)
231 {
232 std::stringstream ss;
233 ss << "could not find entity [" << relationship.m_HeadGuid << "]";
234 ss << " of ExecutionLink [" << relationship.m_Guid << "]";
235 m_Errors.push_back(arm::pipe::ProfilingException(ss.str()));
236 return;
237 }
238 // eventGuid,
239 EventObj* eventObj = FindEvent(relationship.m_TailGuid);
240 if (eventObj == nullptr)
241 {
242 std::stringstream ss;
243 ss << "could not find event [" << relationship.m_TailGuid << "]";
244 ss << " of ExecutionLink [" << relationship.m_Guid << "]";
245 m_Errors.push_back(arm::pipe::ProfilingException(ss.str()));
246 return;
247 }
248 // eventClassGuid
249 EventClassObj* eventClassObj = FindEventClass(relationship.m_AttributeGuid);
250 if (eventClassObj == nullptr)
251 {
252 std::stringstream ss;
253 ss << "could not find event class [" << relationship.m_TailGuid << "]";
254 ss << " of ExecutionLink [" << relationship.m_Guid << "]";
255 m_Errors.push_back(arm::pipe::ProfilingException(ss.str()));
256 return;
257 }
258 eventObj->SetEventClass(eventClassObj);
259 parentEntity->AddEvent(eventObj);
260}
261
262ModelRelationship* TimelineModel::FindRelationship(uint64_t id)
263{

Callers

nothing calls this directly

Calls 5

ProfilingExceptionClass · 0.85
push_backMethod · 0.80
SetEventClassMethod · 0.80
strMethod · 0.45
AddEventMethod · 0.45

Tested by

no test coverage detected