| 625 | } |
| 626 | |
| 627 | NodeId create_node(CallsiteId callsite_id) { |
| 628 | const NodeId prev_node_id = this->current_node_id; |
| 629 | this->current_node_id = NodeId(this->mat.cols()); // advance to a new node |
| 630 | |
| 631 | this->mat.grow_nodes(); |
| 632 | this->mat.prev_id(this->current_node_id) = prev_node_id; // link new node backwards |
| 633 | this->mat.next_id(callsite_id, prev_node_id) = this->current_node_id; // link prev. node forwards |
| 634 | |
| 635 | return this->current_node_id; |
| 636 | } |
| 637 | |
| 638 | void upload_results(bool joined) { |
| 639 | this->mat.time(NodeId::root) = clock::now() - this->entry_time_point; |
no test coverage detected