#include <perf_log.h>
PerfData ()
void start ()
void restart ()
double pause ()
double stopit ()
double tot_time
double tot_time_incl_sub
struct timeval tstart
struct timeval tstart_incl_sub
unsigned int count
bool open
int called_recursively
double stop_or_pause (const bool do_stop)
The PerfData class simply contains the performance data that is recorded for individual events.
Definition at line 51 of file perf_log.h.
Definition at line 58 of file perf_log.h.
:
tot_time(0.),
tot_time_incl_sub(0.),
count(0),
open(false),
called_recursively(0)
{}
Definition at line 306 of file perf_log.h.
References stop_or_pause().
{
return this->stop_or_pause(false);
}
Definition at line 298 of file perf_log.h.
References tstart.
{
gettimeofday (&(this->tstart), NULL);
}
Definition at line 287 of file perf_log.h.
References called_recursively, count, tstart, and tstart_incl_sub.
Referenced by PerfLog::push().
{
this->count++;
this->called_recursively++;
gettimeofday (&(this->tstart), NULL);
this->tstart_incl_sub = this->tstart;
}
Definition at line 313 of file perf_log.h.
References tot_time, tot_time_incl_sub, tstart, and tstart_incl_sub.
Referenced by pause(), and stopit().
{
// save the start times, reuse the structure we have rather than create
// a new one.
const time_t
tstart_tv_sec = this->tstart.tv_sec,
tstart_tv_usec = this->tstart.tv_usec;
gettimeofday (&(this->tstart), NULL);
const double elapsed_time = (static_cast<double>(this->tstart.tv_sec - tstart_tv_sec) +
static_cast<double>(this->tstart.tv_usec - tstart_tv_usec)*1.e-6);
this->tot_time += elapsed_time;
if(do_stop)
{
const double elapsed_time_incl_sub = (static_cast<double>(this->tstart.tv_sec - this->tstart_incl_sub.tv_sec) +
static_cast<double>(this->tstart.tv_usec - this->tstart_incl_sub.tv_usec)*1.e-6);
this->tot_time_incl_sub += elapsed_time_incl_sub;
}
return elapsed_time;
}
Definition at line 342 of file perf_log.h.
References called_recursively, and stop_or_pause().
{
// stopit is just similar to pause except that it decrements the
// recursive call counter
this->called_recursively--;
return this->stop_or_pause(true);
}
Definition at line 107 of file perf_log.h.
Referenced by start(), and stopit().
Definition at line 93 of file perf_log.h.
Referenced by PerfLog::get_perf_info(), and start().
Definition at line 100 of file perf_log.h.
Definition at line 70 of file perf_log.h.
Referenced by PerfLog::get_perf_info(), and stop_or_pause().
Definition at line 75 of file perf_log.h.
Referenced by PerfLog::get_perf_info(), and stop_or_pause().
Definition at line 81 of file perf_log.h.
Referenced by restart(), start(), and stop_or_pause().
Definition at line 87 of file perf_log.h.
Referenced by start(), and stop_or_pause().
Generated automatically by Doxygen for libMesh from the source code.