MCPcopy Create free account
hub / github.com/DmitriBogdanov/UTL / create_node

Method create_node

include/UTL/profiler.hpp:627–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

traverse_forwardMethod · 0.95

Calls 3

NodeIdEnum · 0.70
colsMethod · 0.45
grow_nodesMethod · 0.45

Tested by

no test coverage detected