| 534 | } |
| 535 | |
| 536 | inline std::vector<Simple_Event> load_child_events_simple(const std::vector<Simple_Event> &parent_events_simple, |
| 537 | const std::unordered_map<int_fast64_t, const Event *> &events_map, const std::unordered_map<int_fast64_t, std::vector<int_fast64_t>> &child_graph) |
| 538 | { |
| 539 | std::vector<const Event *> child_events{}; |
| 540 | |
| 541 | // std::set< int_fast64_t> parent_ids = get_distinct_field_values(parent_events_simple, &Simple_Event::unique_id); |
| 542 | for (const auto &simple_parent_event : parent_events_simple) |
| 543 | { |
| 544 | auto it = child_graph.find(simple_parent_event.unique_id); |
| 545 | if (it != child_graph.end()) |
| 546 | { |
| 547 | for (auto &child_id : it->second) |
| 548 | { |
| 549 | auto &child_event = events_map.at(child_id); |
| 550 | auto &parent_event = events_map.at(simple_parent_event.unique_id); |
| 551 | if (child_event->filename == parent_event->filename && |
| 552 | child_event->function == parent_event->function && |
| 553 | child_event->line == parent_event->line) |
| 554 | continue; |
| 555 | |
| 556 | child_events.push_back(child_event); |
| 557 | } |
| 558 | } |
| 559 | } |
| 560 | |
| 561 | return create_simple_events(child_events); |
| 562 | }; |
| 563 | |
| 564 | class EventGroup |
| 565 | { |
no test coverage detected