MAIA bb96820c
Multiphysics at AIA
|
Controller class for all DLB timers. More...
#include <dlbtimer.h>
Public Member Functions | |
void | createDlbTimers (const MInt noTimers, const MBool ignore=false) |
Create the given number of DLB timers. More... | |
void | enableDlbTimers (const MInt dlbTimerId) |
Enable the given DLB timer. More... | |
void | enableAllDlbTimers (const MBool *const wasEnabled=nullptr) |
Enable all DLB timers (or those given by the array wasEnabled) More... | |
void | disableDlbTimers (const MInt dlbTimerId) |
Disable the given DLB timer. More... | |
void | disableAllDlbTimers (MBool *const wasEnabled=nullptr) |
Disable all (enabled) DLB timers. More... | |
MBool | dlbTimersEnabled (const MInt dlbTimerId) |
Return if the given DLB timer is enabled. More... | |
void | startLoadTimer (const MInt dlbTimerId, const MString &name) |
Start the load timer for the given DLB timer id. More... | |
void | stopLoadTimer (const MInt dlbTimerId, const MString &name) |
Stop the load timer for the given DLB timer id. More... | |
void | startIdleTimer (const MInt dlbTimerId, const MString &name) |
Start the idle timer for the given DLB timer id. More... | |
void | stopIdleTimer (const MInt dlbTimerId, const MString &name) |
Stop the idle timer for the given DLB timer id. More... | |
void | stopLoadStartIdleTimer (const MString &name) |
Stop the currently running load timer and start the corresponding idle timer. More... | |
void | stopIdleStartLoadTimer (const MString &name) |
Stop the currently running idle timer and start the corresponding load timer. More... | |
MBool | isTimerRunning () const |
Return if a timer is running. More... | |
MInt | whichTimerIsRunning () const |
MBool | isLoadTimerRunning (const MInt dlbTimerId) |
void | reEnableDlbTimer (const MInt dlbTimerId) |
void | checkIOTimerStatus (const MString &name) const |
Check the timer status during IO (no timer running and timers not enabled) More... | |
void | resetRecords () |
Reset the records of all DLB timers. More... | |
MFloat | returnLoadRecord (const MInt dlbTimerId, const MInt mode=0) |
Return the load record of a DLB timer. More... | |
MFloat | returnIdleRecord (const MInt dlbTimerId, const MInt mode=0) |
Return the idle record of a DLB timer. More... | |
MInt | noDlbTimers () const |
Return the number of DLB timers. More... | |
MInt | noSubTimers () const |
Return the number of (sub-)timers for each DLB timer. More... | |
Private Attributes | |
std::vector< maia::dlbTimer::DlbTimer > | m_dlbTimers {} |
Storage of DLB timers for all solvers/couplers/... More... | |
MInt | m_runningTimerId = -1 |
Id of the currently running DLB load/idle timer. More... | |
MBool | m_enabled = false |
Current status of all timers; false: all timers disabled; true: at least one timer enabled. More... | |
MBool | m_ignoreDlbTimers = true |
Global switch in createDlbTimers() to ignore all DLB timers, i.e. they cannot be enabled. More... | |
Definition at line 223 of file dlbtimer.h.
|
inline |
Definition at line 448 of file dlbtimer.h.
Definition at line 235 of file dlbtimer.h.
|
inline |
Definition at line 300 of file dlbtimer.h.
|
inline |
Definition at line 284 of file dlbtimer.h.
Definition at line 324 of file dlbtimer.h.
|
inline |
Definition at line 265 of file dlbtimer.h.
|
inline |
Definition at line 254 of file dlbtimer.h.
Definition at line 441 of file dlbtimer.h.
|
inline |
Definition at line 437 of file dlbtimer.h.
|
inline |
Definition at line 484 of file dlbtimer.h.
|
inline |
Definition at line 487 of file dlbtimer.h.
|
inline |
Definition at line 445 of file dlbtimer.h.
|
inline |
Definition at line 453 of file dlbtimer.h.
Definition at line 474 of file dlbtimer.h.
Definition at line 464 of file dlbtimer.h.
Definition at line 371 of file dlbtimer.h.
Definition at line 334 of file dlbtimer.h.
|
inline |
Definition at line 423 of file dlbtimer.h.
Definition at line 392 of file dlbtimer.h.
|
inline |
Definition at line 408 of file dlbtimer.h.
Definition at line 355 of file dlbtimer.h.
|
inline |
Definition at line 439 of file dlbtimer.h.
|
private |
Definition at line 491 of file dlbtimer.h.
|
private |
Definition at line 495 of file dlbtimer.h.
|
private |
Definition at line 497 of file dlbtimer.h.
|
private |
Definition at line 493 of file dlbtimer.h.