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

Method create_root_node

include/UTL/profiler.hpp:616–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614 std::thread::id thread_id = std::this_thread::get_id();
615
616 NodeId create_root_node() {
617 const NodeId prev_node_id = this->current_node_id;
618 this->current_node_id = NodeId::root; // advance to a new node
619
620 this->mat.grow_nodes();
621 this->mat.prev_id(this->current_node_id) = prev_node_id;
622 // link new node backwards, since this is a root the prev. one is empty and doesn't need to link forwards
623
624 return this->current_node_id;
625 }
626
627 NodeId create_node(CallsiteId callsite_id) {
628 const NodeId prev_node_id = this->current_node_id;

Callers 1

ThreadCallGraphMethod · 0.95

Calls 1

grow_nodesMethod · 0.45

Tested by

no test coverage detected