| 224 | } |
| 225 | |
| 226 | void 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 | |
| 262 | ModelRelationship* TimelineModel::FindRelationship(uint64_t id) |
| 263 | { |
nothing calls this directly
no test coverage detected