QUDA
1.0.0
|
#include <timer.h>
Public Member Functions | |
Timer () | |
void | Start (const char *func, const char *file, int line) |
void | Stop (const char *func, const char *file, int line) |
double | Last () |
void | Reset (const char *func, const char *file, int line) |
Public Attributes | |
double | time |
double | last |
timeval | start |
timeval | stop |
bool | running |
int | count |
Use this for recording a fine-grained profile of a QUDA algorithm. This uses host-side measurement, so should be used for timing fully host-device synchronous algorithms.Enumeration type used for writing a simple but extensible profiling framework.
|
inline |
Definition at line 88 of file timer.h.
Referenced by quda::tuneLaunch().
|
inline |
Definition at line 90 of file timer.h.
References errorQuda, and printfQuda.
|
inline |
Definition at line 63 of file timer.h.
References errorQuda, and printfQuda.
Referenced by quda::TimeProfile::Start_(), quda::TimeProfile::StartGlobal(), and quda::tuneLaunch().
|
inline |
Definition at line 72 of file timer.h.
References errorQuda, and printfQuda.
Referenced by quda::TimeProfile::Stop_(), quda::TimeProfile::StopGlobal(), and quda::tuneLaunch().
double quda::Timer::last |
Used to store when the timer was last started
Definition at line 47 of file timer.h.
Referenced by quda::TimeProfile::Last().
bool quda::Timer::running |
Keep track of number of calls
Definition at line 56 of file timer.h.
Referenced by quda::TimeProfile::isRunning().
timeval quda::Timer::start |
double quda::Timer::time |
< The cumulative sum of time The last recorded time interval
Definition at line 44 of file timer.h.
Referenced by quda::TimeProfile::Print(), and quda::TimeProfile::PrintGlobal().