Chombo + EB + MF
3.2
|
#include <OldTimer.H>
Public Member Functions | |
OldTimer () | |
Construct an unnamed timer that has no relation to any other instance. More... | |
OldTimer (const string &a_name, const int a_tableID) | |
Construct a named timer and add it to a table. More... | |
OldTimer (const string &a_name, OldTimer &, const int a_tableID) | |
OldTimer (const string &a_name, OldTimer &) | |
OldTimer (const string &a_name, OldTimer &, const int a_tableID, bool) | |
~OldTimer () | |
void | setup () |
void | start () |
void | stop () |
void | stop (Real &wc1) |
void | clear () |
double | getTimeStampWC () |
double | wc_time () |
double | mflops () |
void | writeTotalPct (const string &a_extra="") |
string | Name () |
long long int | Count () |
int | tableID () |
Static Public Member Functions | |
static void | TimerSummary (const int bert, const int ernie) |
static void | TimerInit (const int rank) |
static void | TimerSummary (void) |
static void | TimerSummaryWithTITAfiles (void) |
Static Public Attributes | |
static list< OldTimer * > * | TimerList |
Static Private Member Functions | |
static void | TimerSummary_ (const int itita) |
static void | writeParentTables (FILE *out, const double TimerCost) |
static void | writeDiagnosticTables (FILE *out, const double TimerCost) |
Private Attributes | |
int | m_tableID |
double | m_accumulated_WCtime |
double | m_last_WCtime_stamp |
struct timeval | tv |
struct timezone | tz |
int | m_ID |
string | m_name |
bool | m_diagnostic |
OldTimer & | m_Parent |
bool | m_evenCountAcrossRanks |
double | m_avgWC |
double | m_minWC |
double | m_maxWC |
double | m_avgCount |
long long int | m_count |
long long int | m_totalCount |
A simple class for keeping track of elapsed time.
CH_XD::OldTimer provides the ability to measure the passage of wall-clock time within units of code, and relate multiple measurements in a hierarchical manner.
A timer can be started, stopped, reset and printed out. Multiple timers can be instantiated and related to each other hierarchically: a timer instance may have a parent and children. The hierarchical relationship is relevant only when printing out the summary report.
In parallel, the timers on each proc operate independently. Only the summary operations cause communication between procs.
OldTimer::OldTimer | ( | ) |
Construct an unnamed timer that has no relation to any other instance.
OldTimer::OldTimer | ( | const string & | a_name, |
const int | a_tableID | ||
) |
Construct a named timer and add it to a table.
OldTimer::OldTimer | ( | const string & | a_name, |
OldTimer & | , | ||
const int | a_tableID | ||
) |
OldTimer::OldTimer | ( | const string & | a_name, |
OldTimer & | |||
) |
OldTimer::OldTimer | ( | const string & | a_name, |
OldTimer & | , | ||
const int | a_tableID, | ||
bool | |||
) |
OldTimer::~OldTimer | ( | ) |
void OldTimer::setup | ( | ) |
void OldTimer::start | ( | ) |
void OldTimer::stop | ( | ) |
void OldTimer::stop | ( | Real & | wc1 | ) |
void OldTimer::clear | ( | ) |
|
inline |
|
inline |
double OldTimer::mflops | ( | ) |
void OldTimer::writeTotalPct | ( | const string & | a_extra = "" | ) |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
static |
|
static |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |