25 params.
set<
bool>(
"_always_store") =
false;
39 mooseAssert(perf_graph,
"perf_graph is not set");
42 const_cast<PerfGraph *
>(perf_graph)->update();
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.
static InputParameters validParams()
long int selfMemory() const
Get the amount of memory added by this node.
Reporter object that has a single execution of the "execute" method for for each execute flag...
registerMooseObject("MooseApp", PerfGraphReporter)
static InputParameters validParams()
unsigned int _level
Print level (verbosity level)
unsigned long int numCalls() const
Get the number of times this node was called.
Reports the full graph from the PerfGraph.
const std::map< PerfID, std::unique_ptr< PerfNode > > & children() const
Get the children.
PerfID id() const
Get the ID of this Node.
const ReporterMode REPORTER_MODE_DISTRIBUTED
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)
PerfGraphReporter(const InputParameters ¶meters)
The PerfGraph will hold the master list of all registered performance segments and the head PerfNode...
PerfGraphRegistry & getPerfGraphRegistry()
Get the global PerfGraphRegistry singleton.
const PerfNode & rootNode() const