25 return perf_graph_registry_singleton;
42 const std::string & live_message,
43 const bool print_dots)
45 if (section_name ==
"")
46 mooseError(
"Section name not provided when registering timed section!");
48 if (live_message ==
"")
49 mooseError(
"Live message not provided when registering timed section!");
57 const std::string & live_message,
58 const bool print_dots)
60 const auto create_item = [§ion_name, &level, &live_message, &print_dots](
const std::size_t
id)
The place where all timed sections will be stored.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
void dataStore(std::ostream &stream, moose::internal::PerfGraphSectionInfo &info, void *context)
Used to hold metadata about the registered sections Note: this is a class instead of a struct because...
void dataLoad(std::istream &stream, moose::internal::PerfGraphSectionInfo &info, void *context)
std::size_t id(const std::string &key) const
PerfID registerSection(const std::string §ion_name, const unsigned int level)
Call to register a named section for timing.
std::size_t registerItem(const std::string &key, CreateItem &create_item)
Registers an item with key key if said key does not exist.
PerfID actuallyRegisterSection(const std::string §ion_name, const unsigned int level, const std::string &live_message, const bool print_dots=true)
The internal function that actually carries out the registration.
PerfGraphRegistry & getPerfGraphRegistry()
Get the global PerfGraphRegistry singleton.