30 : printMonitor_(object, msg +
" (" + object.description() +
")", msgLevel)
31 , timerMonitor_(object, object.ShortClassName() +
": " + msg +
" (total)", timerLevel) {}
34 : printMonitor_(object, label + msg +
" (" + object.description() +
")", msgLevel)
35 , timerMonitor_(object, label + object.ShortClassName() +
": " + msg +
" (total)", timerLevel) {}
40 : printMonitor_(object, msg, msgLevel)
41 , timerMonitor_(object, object.ShortClassName() +
": " + msg +
" (sub, total)", timerLevel) {}
44 : printMonitor_(object, label + msg, msgLevel)
45 , timerMonitor_(object, label + object.ShortClassName() +
": " + msg +
" (sub, total)", timerLevel) {}
50 :
Monitor(object, msg, msgLevel, timerLevel)
51 , timerMonitorExclusive_(object, object.ShortClassName() +
": " + msg, timerLevel) {
61 , timerMonitorExclusive_(object,
FormattingHelper::getColonLabel(level.getObjectLabel()) + object.ShortClassName() +
": " + msg, timerLevel) {
73 :
SubMonitor(object, msg, msgLevel, timerLevel) {
static Teuchos::RCP< Teuchos::StackedTimer > getStackedTimer()
RCP< TimeMonitor > levelTimeMonitor_
Total time spent on this level in this object and all children.
Teuchos::FancyOStream & GetOStream(MsgType type, int thisProcRankOnly=0) const
Get an output stream for outputting the input message type.
virtual std::string getObjectLabel() const
bool is_null(const boost::shared_ptr< T > &p)
Timer to be used in non-factories. Similar to Monitor, but doesn't print object description.
Integrates Teuchos::TimeMonitor with MueLu verbosity system.
static std::string toString(const double &x)
virtual std::string ShortClassName() const
Return the class name of the object, without template parameters and without namespace.
Monitor(const BaseClass &object, const std::string &msg, MsgType msgLevel=Runtime0, MsgType timerLevel=Timings0)
Constructor.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Class that holds all level-specific information.
RCP< TimeMonitor > levelTimeMonitor_
Total time spent on this level in this object and all its children.
FactoryMonitor(const BaseClass &object, const std::string &msg, int levelID, MsgType msgLevel=static_cast< MsgType >(Test|Runtime0), MsgType timerLevel=Timings0)
Constructor.
bool IsPrint(MsgType type, int thisProcRankOnly=-1) const
Find out whether we need to print out information for a specific message type.
Similar to TimeMonitor, but uses MutuallyExclusiveTime objects.
Base class for MueLu classes.
Record timing information level by level. Must be used in combinaison with Timings0/Timings1.
SubFactoryMonitor(const BaseClass &object, const std::string &msg, int levelID, MsgType msgLevel=Runtime1, MsgType timerLevel=Timings1)
Constructor.
Timer to be used in non-factories.
RCP< MutuallyExclusiveTimeMonitor< Level > > levelTimeMonitorExclusive_
Total time spent on this level in this object only, excluding all children.
static int timerIdentifier_
int GetLevelID() const
Return level number.
const BaseClass & object_
virtual RCP< FancyOStream > getOStream() const
SubMonitor(const BaseClass &object, const std::string &msg, MsgType msgLevel=Runtime1, MsgType timerLevel=Timings1)
Constructor.