Go to the source code of this file.
◆ registerMooseObject()
◆ to_json() [1/2]
void to_json |
( |
nlohmann::json & |
json, |
|
|
const PerfGraph *const & |
perf_graph |
|
) |
| |
Definition at line 37 of file PerfGraphReporter.C.
Referenced by to_json().
39 mooseAssert(perf_graph,
"perf_graph is not set");
42 const_cast<PerfGraph *
>(perf_graph)->update();
void to_json(nlohmann::json &json, const PerfGraph *const &perf_graph)
The PerfGraph will hold the master list of all registered performance segments and the head PerfNode...
const PerfNode & rootNode() const
◆ to_json() [2/2]
void to_json |
( |
nlohmann::json & |
json, |
|
|
const PerfNode & |
node |
|
) |
| |
Definition at line 49 of file PerfGraphReporter.C.
53 auto & node_json = json[
info._name];
55 node_json[
"num_calls"] = node.
numCalls();
60 for (
const auto & id_child_pair : node.
children())
61 to_json(node_json, *id_child_pair.second);
Real selfTimeSec() const
Get the time this node took in seconds.
long int selfMemory() const
Get the amount of memory added by this node.
unsigned int _level
Print level (verbosity level)
unsigned long int numCalls() const
Get the number of times this node was called.
const std::map< PerfID, std::unique_ptr< PerfNode > > & children() const
Get the children.
PerfID id() const
Get the ID of this Node.
const PerfGraphSectionInfo & sectionInfo(const PerfID section_id) const
Given a PerfID return the PerfGraphSectionInfo The ID.
void to_json(nlohmann::json &json, const PerfGraph *const &perf_graph)
PerfGraphRegistry & getPerfGraphRegistry()
Get the global PerfGraphRegistry singleton.