| 280 | } |
| 281 | |
| 282 | void 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 | |
| 306 | void ConfigureDetailsObject(JsonChildObject& detailsObject, |
| 307 | std::string layerDetailsStr) |
nothing calls this directly
no test coverage detected