https://mooseframework.inl.gov
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

 moose
 
 moose::internal
 

Functions

void dataStore (std::ostream &, PerfGraph &, void *)
 
PerfGraphRegistry & moose::internal::getPerfGraphRegistry ()
 Get the global PerfGraphRegistry singleton. More...
 
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 }
MPI_Info info
void dataLoad(std::istream &stream, moose::internal::PerfGraphSectionInfo &info, void *context)

◆ dataStore() [1/2]

void dataStore ( std::ostream &  ,
PerfGraph ,
void  
)

Definition at line 490 of file PerfGraph.C.

491 {
492  // We need to store the registry id -> section info map so that we can add
493  // registered sections that may not be added yet during recover
494  dataStore(stream, perf_graph._perf_graph_registry._id_to_item, nullptr);
495 
496  // Update before serializing the nodes so that the time/memory/calls are correct
497  perf_graph.update();
498 
499  // Recursively serialize all of the nodes
500  dataStore(stream, perf_graph._root_node, nullptr);
501 }
void dataStore(std::ostream &stream, PerfGraph &perf_graph, void *)
Definition: PerfGraph.C:490

◆ 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 }
MPI_Info info
void dataStore(std::ostream &stream, moose::internal::PerfGraphSectionInfo &info, void *context)