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

Method PopulateParent

src/armnn/Profiling.cpp:268–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void ProfilerImpl::PopulateParent(std::vector<const Event*>& outEvents, int& outBaseLevel, std::string parentName) const
269{
270 outEvents.reserve(m_EventSequence.size());
271 for (const auto& event : m_EventSequence)
272 {
273 const Event* eventPtrRaw = event.get();
274 if (eventPtrRaw->GetName() == parentName)
275 {
276 outBaseLevel = (outBaseLevel == -1) ? CalcLevel(eventPtrRaw) : outBaseLevel;
277 outEvents.push_back(eventPtrRaw);
278 }
279 }
280}
281
282void ProfilerImpl::PopulateDescendants(std::map<const Event*, std::vector<const Event*>>& outDescendantsMap) const
283{

Callers

nothing calls this directly

Calls 6

CalcLevelFunction · 0.85
push_backMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected