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

Method AddEventClass

src/profiling/test/TimelineModel.cpp:281–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void TimelineModel::AddEventClass(const arm::pipe::ITimelineDecoder::EventClass& eventClass)
282{
283 std::string* eventClassName = FindLabel(eventClass.m_NameGuid);
284 if (eventClassName != nullptr)
285 {
286 EventClassObj eventClassObj(eventClass.m_Guid, *eventClassName);
287 m_EventClasses.emplace(eventClassObj.GetGuid(), eventClassObj);
288 }
289 else
290 {
291 std::stringstream ss;
292 ss << "could not find name [" << eventClass.m_NameGuid << "]";
293 ss << " of of event class [" << eventClass.m_Guid << "]";
294 m_Errors.push_back(arm::pipe::ProfilingException(ss.str()));
295 }
296}
297
298EventClassObj* TimelineModel::FindEventClass(uint64_t id)
299{

Callers 1

CreateEventClassMethod · 0.80

Calls 5

ProfilingExceptionClass · 0.85
emplaceMethod · 0.80
push_backMethod · 0.80
GetGuidMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected