80{
82
83
86
87 std::chrono::steady_clock::duration total_time;
88 dataLoad(stream, total_time,
nullptr);
89 node->_total_time += total_time;
90
91 long unsigned int num_calls;
92 dataLoad(stream, num_calls,
nullptr);
93 node->_num_calls += num_calls;
94
95 long unsigned int total_memory;
96 dataLoad(stream, total_memory,
nullptr);
97 node->_total_memory += total_memory;
98
99
100
101
102 std::size_t num_children;
103 dataLoad(stream, num_children,
nullptr);
104 std::size_t i = 0;
105 while (i++ < num_children)
106 {
109 node->getChild(id);
110
111 const auto & child = node->_children[id];
112 dataLoad(stream, child, perf_graph);
113 }
114}
void dataLoad(std::istream &stream, const std::unique_ptr< PerfNode > &node, void *perf_graph)
The PerfGraph will hold the master list of all registered performance segments and the head PerfNode.
const PerfNode & rootNode() const
PerfID sectionID(const std::string §ion_name) const
Given a name return the PerfID @section_name The name of the section.
std::string name(const ElemQuality q)
PerfGraphRegistry & getPerfGraphRegistry()
Get the global PerfGraphRegistry singleton.