KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::MeasureTime Struct Reference

Timer policy measuring the CG sub-operations via Kaskade's Timings facility. More...

#include <cgImplementation.hh>

Public Member Functions

 MeasureTime (Timings &timer_=Timings::instance())
void resumeCGTimer ()
void resumeMVTimer ()
void resumeDPTimer ()
void resumeAPTimer ()
void resumePRTimer ()
void stopCGTimer ()
void stopMVTimer ()
void stopDPTimer ()
void stopAPTimer ()
void stopPRTimer ()
void printTimers ()

Detailed Description

Timer policy measuring the CG sub-operations via Kaskade's Timings facility.

Times the four sub-operations of the conjugate gradient iteration (matrix-vector products, dual pairings, vector axpy operations, preconditioner applications) as nested sections of a top-level "CG solver" section in the Timings tree, e.g. in the global Timings::instance(). The accumulated times appear in the standard Timings::report() output together with all other Kaskade timings, with call counts and shares of the enclosing section.

The constructor takes the Timings instance to record into (defaulting to the global one), so a caller may provide a dedicated instance, e.g. one per thread.

Definition at line 193 of file cgImplementation.hh.

Constructor & Destructor Documentation

◆ MeasureTime()

Kaskade::MeasureTime::MeasureTime ( Timings & timer_ = Timings::instance())
inline

Definition at line 195 of file cgImplementation.hh.

Member Function Documentation

◆ printTimers()

void Kaskade::MeasureTime::printTimers ( )
inline

Definition at line 209 of file cgImplementation.hh.

◆ resumeAPTimer()

void Kaskade::MeasureTime::resumeAPTimer ( )
inline

Definition at line 200 of file cgImplementation.hh.

◆ resumeCGTimer()

void Kaskade::MeasureTime::resumeCGTimer ( )
inline

Definition at line 197 of file cgImplementation.hh.

◆ resumeDPTimer()

void Kaskade::MeasureTime::resumeDPTimer ( )
inline

Definition at line 199 of file cgImplementation.hh.

◆ resumeMVTimer()

void Kaskade::MeasureTime::resumeMVTimer ( )
inline

Definition at line 198 of file cgImplementation.hh.

◆ resumePRTimer()

void Kaskade::MeasureTime::resumePRTimer ( )
inline

Definition at line 201 of file cgImplementation.hh.

◆ stopAPTimer()

void Kaskade::MeasureTime::stopAPTimer ( )
inline

Definition at line 206 of file cgImplementation.hh.

◆ stopCGTimer()

void Kaskade::MeasureTime::stopCGTimer ( )
inline

Definition at line 203 of file cgImplementation.hh.

◆ stopDPTimer()

void Kaskade::MeasureTime::stopDPTimer ( )
inline

Definition at line 205 of file cgImplementation.hh.

◆ stopMVTimer()

void Kaskade::MeasureTime::stopMVTimer ( )
inline

Definition at line 204 of file cgImplementation.hh.

◆ stopPRTimer()

void Kaskade::MeasureTime::stopPRTimer ( )
inline

Definition at line 207 of file cgImplementation.hh.


The documentation for this struct was generated from the following file: