Simple (simplistic) mpi-profiling. More...
Public Member Functions | |
TypeName ("parProfiling") | |
Runtime type information. More... | |
parProfiling (const word &name, const Time &runTime, const dictionary &dict) | |
Construct from Time and dictionary. More... | |
virtual | ~parProfiling () |
Destructor. More... | |
void | report () |
Report the current profiling information. More... | |
virtual bool | execute () |
Report. More... | |
virtual bool | write () |
Do nothing. More... | |
virtual bool | end () |
Report. More... | |
![]() | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) | |
functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix) | |
Construct from components. More... | |
autoPtr< functionObject > | clone () const |
Return clone. More... | |
virtual | ~functionObject ()=default |
Destructor. More... | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
const word & | name () const noexcept |
Return the name of this functionObject. More... | |
bool | useNamePrefix () const noexcept |
Return the flag for adding a scoping name prefix. More... | |
bool | useNamePrefix (bool on) noexcept |
Modify the flag for adding a scoping name prefix. More... | |
virtual bool | read (const dictionary &dict) |
Read and set the function object if its data have changed. More... | |
virtual bool | execute (const label subIndex) |
Execute using the specified subIndex. More... | |
virtual bool | adjustTimeStep () |
Called at the end of Time::adjustDeltaT() if adjustTime is true. More... | |
virtual bool | filesModified () const |
Did any file get changed during execution? More... | |
virtual void | updateMesh (const mapPolyMesh &mpm) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &mesh) |
Update for changes of mesh. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
Select from dictionary, based on its "type" entry. More... | |
![]() | |
bool | log |
Flag to write log into Info. More... | |
![]() | |
static int | debug |
Flag to execute debug content. More... | |
static bool | postProcess |
Global post-processing mode switch. More... | |
static bool | defaultUseNamePrefix |
Global default for useNamePrefix. More... | |
static word | outputPrefix |
Directory prefix. More... | |
![]() | |
word | scopedName (const word &name) const |
Return a scoped (prefixed) name. More... | |
Simple (simplistic) mpi-profiling.
profiling { type parProfiling; libs (utilityFunctionObjects); // Report stats on exit only (instead of every time step) executeControl onEnd; writeControl none; }
Definition at line 73 of file parProfiling.H.
parProfiling | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Construct from Time and dictionary.
Definition at line 98 of file parProfiling.C.
|
virtual |
Destructor.
Definition at line 112 of file parProfiling.C.
References profilingPstream::disable().
TypeName | ( | "parProfiling" | ) |
Runtime type information.
void report | ( | ) |
Report the current profiling information.
Definition at line 120 of file parProfiling.C.
References profilingPstream::active(), profilingPstream::ALL_TO_ALL, Pstream::combineGather(), Foam::decrIndent(), Foam::endl(), Tuple2< T1, T2 >::first(), FixedList< T, N >::first(), profilingPstream::GATHER, Foam::incrIndent(), Foam::indent(), Foam::Info, UPstream::master(), UPstream::myProcNo(), Foam::nl, UPstream::nProcs(), profilingPstream::REDUCE, profilingPstream::resume(), profilingPstream::SCATTER, Tuple2< T1, T2 >::second(), profilingPstream::suspend(), profilingPstream::times(), Foam::type(), and profilingPstream::WAIT.
|
virtual |
|
virtual |
|
virtual |
Report.
Reimplemented from functionObject.
Definition at line 220 of file parProfiling.C.
References profilingPstream::disable().