https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
PerfGraphRegistry.h File Reference

Go to the source code of this file.

Classes

class  moose::internal::PerfGraphSectionInfo
 Used to hold metadata about the registered sections Note: this is a class instead of a struct because structs are not able to be created in place using emplace_back in C++11. More...
 
class  moose::internal::PerfGraphRegistry
 The place where all timed sections will be stored. More...
 

Namespaces

namespace  moose
 
namespace  moose::internal
 

Functions

void dataStore (std::ostream &, PerfGraph &, void *)
 
PerfGraphRegistrymoose::internal::getPerfGraphRegistry ()
 Get the global PerfGraphRegistry singleton.
 
void dataStore (std::ostream &stream, moose::internal::PerfGraphSectionInfo &info, void *context)
 
void dataLoad (std::istream &stream, moose::internal::PerfGraphSectionInfo &info, void *context)
 

Function Documentation

◆ dataLoad()

void dataLoad ( std::istream &  stream,
moose::internal::PerfGraphSectionInfo info,
void *  context 
)

Definition at line 79 of file PerfGraphRegistry.C.

80{
81 dataLoad(stream, info._id, context);
82 dataLoad(stream, info._name, context);
83 dataLoad(stream, info._level, context);
84 dataLoad(stream, info._live_message, context);
85 dataLoad(stream, info._print_dots, context);
86}
void dataLoad(std::istream &stream, moose::internal::PerfGraphSectionInfo &info, void *context)
MPI_Info info

Referenced by dataLoad().

◆ dataStore() [1/2]

void dataStore ( std::ostream &  stream,
PerfGraph perf_graph,
void *  context 
)

Definition at line 511 of file PerfGraph.C.

512{
513 // We need to store the registry id -> section info map so that we can add
514 // registered sections that may not be added yet during recover
515 dataStore(stream, perf_graph._perf_graph_registry._id_to_item, nullptr);
516
517 // Update before serializing the nodes so that the time/memory/calls are correct
518 perf_graph.update();
519
520 // Recursively serialize all of the nodes
521 dataStore(stream, perf_graph._root_node, nullptr);
522}
void dataStore(std::ostream &stream, PerfGraph &perf_graph, void *)
Definition PerfGraph.C:511
std::deque< Item > _id_to_item
Vector of IDs to Items.
PerfGraphRegistry & _perf_graph_registry
The PerfGraphRegistry.
Definition PerfGraph.h:344
void update()
Updates the time section_time and time for all currently running nodes.
Definition PerfGraph.C:285
const std::unique_ptr< PerfNode > _root_node
The root node of the graph.
Definition PerfGraph.h:356

◆ dataStore() [2/2]

void dataStore ( std::ostream &  stream,
moose::internal::PerfGraphSectionInfo info,
void *  context 
)

Definition at line 69 of file PerfGraphRegistry.C.

70{
71 dataStore(stream, info._id, context);
72 dataStore(stream, info._name, context);
73 dataStore(stream, info._level, context);
74 dataStore(stream, info._live_message, context);
75 dataStore(stream, info._print_dots, context);
76}
void dataStore(std::ostream &stream, moose::internal::PerfGraphSectionInfo &info, void *context)

Referenced by dataStore().