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