46 #ifndef MUELU_TIMEMONITOR_HPP 47 #define MUELU_TIMEMONITOR_HPP 50 #include <Teuchos_DefaultComm.hpp> 91 if (
timer_ != Teuchos::null)
109 template <
class TagName>
135 timer_->incrementNumCalls();
141 if (
timer_ != Teuchos::null)
154 #endif // MUELU_TIMEMONITOR_HPP High level timing information (use Teuchos::TimeMonitor::summarize() to print)
MutuallyExclusiveTimeMonitor()
VerbLevel GetVerbLevel() const
Get the verbosity level.
RCP< Teuchos::Time > timer_
TimeMonitor(const BaseClass &object, const std::string &msg, MsgType timerLevel=Timings0)
Namespace for MueLu classes and methods.
Integrates Teuchos::TimeMonitor with MueLu verbosity system.
MutuallyExclusiveTimeMonitor(const BaseClass &object, const std::string &msg, MsgType timerLevel=Timings0)
Constructor.
static RCP< Time > getNewTimer(const std::string &name)
void start(bool reset=false)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
bool IsPrint(MsgType type, int thisProcRankOnly=-1) const
Find out whether we need to print out information for a specific message type.
static RCP< MutuallyExclusiveTime< TagName > > getNewTimer(const std::string &name)
Return a new MutuallyExclusiveTime that is registered with the Teuchos::TimeMonitor (for timer summar...
Similar to TimeMonitor, but uses MutuallyExclusiveTime objects.
By default, enabled timers appears in the teuchos time monitor summary. Use this option if you do not...
RCP< MutuallyExclusiveTime< TagName > > timer_
Timers that are enabled (using Timings0/Timings1) will be printed during the execution.
Base class for MueLu classes.
This class wraps a Teuchos::Time and maintains a mutually exclusive property between wrapped timers...
void SetVerbLevel(const VerbLevel verbLevel)
Set the verbosity level of this object.
int GetProcRankVerbose() const
Get proc rank used for printing. Do not use this information for any other purpose.
int SetProcRankVerbose(int procRank) const
Set proc rank used for printing.
~MutuallyExclusiveTimeMonitor()