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

Method HandleRetentionLink

src/timelineDecoder/JSONTimelineDecoder.cpp:196–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void JSONTimelineDecoder::HandleRetentionLink(const ITimelineDecoder::Relationship& relationship)
197{
198 if (m_Model.jsonEntities.count(relationship.m_TailGuid) != 0 && m_Model.jsonEntities
199 .count(relationship.m_HeadGuid) != 0)
200 {
201 JSONEntity& tailJSONEntity = m_Model.jsonEntities.at(relationship.m_TailGuid);
202 JSONEntity& headJSONEntity = m_Model.jsonEntities.at(relationship.m_HeadGuid);
203 tailJSONEntity.SetParent(headJSONEntity);
204 m_Model.jsonEntities.insert({relationship.m_HeadGuid, headJSONEntity});
205 m_Model.relationships.insert({relationship.m_Guid, relationship});
206 }
207 else
208 {
209 m_Model.relationships.insert({relationship.m_Guid, relationship});
210 }
211}
212
213void JSONTimelineDecoder::JSONEntity::SetParent(JSONEntity& parent)
214{

Callers

nothing calls this directly

Calls 2

SetParentMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected