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

Method PopulateDescendants

src/armnn/Profiling.cpp:282–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void ProfilerImpl::PopulateDescendants(std::map<const Event*, std::vector<const Event*>>& outDescendantsMap) const
283{
284 for (const auto& event : m_EventSequence)
285 {
286 const Event* eventPtrRaw = event.get();
287 const Event* parent = eventPtrRaw->GetParentEvent();
288
289 if (!parent)
290 {
291 continue;
292 }
293
294 auto it = outDescendantsMap.find(parent);
295 if (it == outDescendantsMap.end())
296 {
297 outDescendantsMap.emplace(parent, std::vector<const Event*>({ eventPtrRaw }));
298 }
299 else
300 {
301 it->second.push_back(eventPtrRaw);
302 }
303 }
304}
305
306void ConfigureDetailsObject(JsonChildObject& detailsObject,
307 std::string layerDetailsStr)

Callers

nothing calls this directly

Calls 5

GetParentEventMethod · 0.80
emplaceMethod · 0.80
push_backMethod · 0.80
getMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected