Go to the source code of this file.
◆ dataLoad()
void dataLoad |
( |
std::istream & |
stream, |
|
|
const std::unique_ptr< PerfNode > & |
node, |
|
|
void * |
context |
|
) |
| |
Definition at line 79 of file PerfNode.C.
84 if (node.get() == &
static_cast<PerfGraph *
>(perf_graph)->rootNode())
87 std::chrono::steady_clock::duration total_time;
88 dataLoad(stream, total_time,
nullptr);
89 node->_total_time += total_time;
91 long unsigned int num_calls;
92 dataLoad(stream, num_calls,
nullptr);
93 node->_num_calls += num_calls;
95 long unsigned int total_memory;
96 dataLoad(stream, total_memory,
nullptr);
97 node->_total_memory += total_memory;
102 std::size_t num_children;
103 dataLoad(stream, num_children,
nullptr);
105 while (i++ < num_children)
111 const auto & child = node->_children[id];
112 dataLoad(stream, child, perf_graph);
std::string name(const ElemQuality q)
void dataLoad(std::istream &stream, const std::unique_ptr< PerfNode > &node, void *perf_graph)
PerfID sectionID(const std::string §ion_name) const
Given a name return the PerfID The name of the section.
The PerfGraph will hold the master list of all registered performance segments and the head PerfNode...
PerfGraphRegistry & getPerfGraphRegistry()
Get the global PerfGraphRegistry singleton.
◆ dataStore()
void dataStore |
( |
std::ostream & |
stream, |
|
|
const std::unique_ptr< PerfNode > & |
node, |
|
|
void * |
context |
|
) |
| |
Definition at line 58 of file PerfNode.C.
64 dataStore(stream, node->_total_time,
nullptr);
65 dataStore(stream, node->_num_calls,
nullptr);
66 dataStore(stream, node->_total_memory,
nullptr);
69 std::size_t num_children = node->children().size();
71 for (
auto & id_child_pair : node->_children)
73 const auto & child = id_child_pair.second;
std::string name(const ElemQuality q)
const PerfGraphSectionInfo & sectionInfo(const PerfID section_id) const
Given a PerfID return the PerfGraphSectionInfo The ID.
void dataStore(std::ostream &stream, const std::unique_ptr< PerfNode > &node, void *)
PerfGraphRegistry & getPerfGraphRegistry()
Get the global PerfGraphRegistry singleton.