100{
102
103
106
107 std::chrono::steady_clock::duration total_time;
108 dataLoad(stream, total_time,
nullptr);
109 node->_total_time += total_time;
110
111 long unsigned int num_calls;
112 dataLoad(stream, num_calls,
nullptr);
113 node->_num_calls += num_calls;
114
115 long unsigned int total_memory;
116 dataLoad(stream, total_memory,
nullptr);
117 node->_total_memory += total_memory;
118
119
120
121
122 std::size_t num_children;
123 dataLoad(stream, num_children,
nullptr);
124 std::size_t i = 0;
125 while (i++ < num_children)
126 {
129 node->getChild(id);
130
131 const auto & child = node->_children[id];
132 dataLoad(stream, child, perf_graph);
133 }
134}
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.