26 params.
addParam<std::vector<VariableName>>(
28 "A list of the variables and postprocessors that should NOT be output to the"
29 "file (may include Variables, ScalarVariables, and Postprocessor names).");
34 "level", 1,
"The level of detail to output. Higher levels will yield more detail.");
36 params.
addParam<
bool>(
"heaviest_branch",
38 "Whether or not to print out the trace through the code that took the "
39 "longest amount of time");
41 params.
addParam<
unsigned int>(
"heaviest_sections",
43 "The number of sections to print out showing the parts of the code "
44 "that take the most time. When '0' it won't print at all.");
46 params.
addClassDescription(
"Controls output of the PerfGraph: the performance log for MOOSE");
54 _level(getParam<unsigned
int>(
"level")),
55 _heaviest_branch(getParam<bool>(
"heaviest_branch")),
56 _heaviest_sections(getParam<unsigned
int>(
"heaviest_sections"))
const ExecFlagType EXEC_FINAL
registerMooseObject("MooseApp", PerfGraphOutput)
void ErrorVector unsigned int
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.
A MultiMooseEnum object to hold "execute_on" flags.
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
MooseApp & _app
The MOOSE application this is associated with.
bool isValueSet(const std::string &value) const
Methods for seeing if a value is set in the MultiMooseEnum.
Based class for output objects.
ExecFlagEnum _execute_on
The common Execution types; this is used as the default execution type for everything except system i...
static InputParameters validParams()
ExecFlagType _current_execute_flag
Current execute on flag.
PerfGraph & perfGraph()
Get the PerfGraph.
Class for output information regarding Controls to the screen.
unsigned int _heaviest_sections
virtual void output() override
Overload this function with the desired output activities.
PerfGraphOutput(const InputParameters ¶meters)
virtual bool shouldOutput() override
Handles logic for determining if a step should be output.
static InputParameters validParams()
void printHeaviestBranch(const ConsoleStream &console)
Print out the heaviest branch through the tree.
void print(const ConsoleStream &console, unsigned int level)
Print the tree out.
void printHeaviestSections(const ConsoleStream &console, const unsigned int num_sections)
Print out the heaviest sections that were timed.