OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Timing Struct Reference

#include <IpplTimings.h>

Collaboration diagram for Timing:

Public Types

typedef unsigned int TimerRef
typedef IpplTimerInfo TimerInfo
typedef std::vector< my_auto_ptr< TimerInfo > > TimerList_t
typedef std::map< std::string, TimerInfo * > TimerMap_t

Public Member Functions

 Timing ()
 ~Timing ()
TimerRef getTimer (const char *)
void startTimer (TimerRef)
void stopTimer (TimerRef)
void clearTimer (TimerRef)
TimerInfoinfoTimer (const char *nm)
void print ()
void print (const std::string &fn, const std::map< std::string, unsigned int > &problemSize)

Private Attributes

TimerList_t TimerList
TimerMap_t TimerMap

Detailed Description

Definition at line 119 of file IpplTimings.h.

Member Typedef Documentation

◆ TimerInfo

Definition at line 125 of file IpplTimings.h.

◆ TimerList_t

typedef std::vector<my_auto_ptr<TimerInfo> > Timing::TimerList_t

Definition at line 159 of file IpplTimings.h.

◆ TimerMap_t

typedef std::map<std::string, TimerInfo *> Timing::TimerMap_t

Definition at line 160 of file IpplTimings.h.

◆ TimerRef

typedef unsigned int Timing::TimerRef

Definition at line 122 of file IpplTimings.h.

Constructor & Destructor Documentation

◆ Timing()

Timing::Timing ( )

Definition at line 24 of file IpplTimings.cpp.

References TimerList, and TimerMap.

◆ ~Timing()

Timing::~Timing ( )

Definition at line 32 of file IpplTimings.cpp.

References TimerList, and TimerMap.

Member Function Documentation

◆ clearTimer()

void Timing::clearTimer ( TimerRef t)

Definition at line 81 of file IpplTimings.cpp.

References TimerList.

◆ getTimer()

Timing::TimerRef Timing::getTimer ( const char * nm)

Definition at line 44 of file IpplTimings.cpp.

References IpplTimerInfo::indx, IpplTimerInfo::name, TimerList, and TimerMap.

◆ infoTimer()

TimerInfo * Timing::infoTimer ( const char * nm)
inline

Definition at line 146 of file IpplTimings.h.

References TimerMap.

◆ print() [1/2]

void Timing::print ( )

Definition at line 90 of file IpplTimings.cpp.

References a, begin(), IpplTimerInfo::cpuTime, end(), endl(), IpplInfo::getNodes(), level1(), IpplTimerInfo::name, reduce(), TimerList, and IpplTimerInfo::wallTime.

Here is the call graph for this function:

◆ print() [2/2]

void Timing::print ( const std::string & fn,
const std::map< std::string, unsigned int > & problemSize )

Definition at line 153 of file IpplTimings.cpp.

References a, begin(), IpplTimerInfo::cpuTime, end(), endl(), IpplInfo::getNodes(), IpplTimerInfo::name, reduce(), TimerList, and IpplTimerInfo::wallTime.

Here is the call graph for this function:

◆ startTimer()

void Timing::startTimer ( TimerRef t)

Definition at line 63 of file IpplTimings.cpp.

References TimerList.

◆ stopTimer()

void Timing::stopTimer ( TimerRef t)

Definition at line 72 of file IpplTimings.cpp.

References TimerList.

Member Data Documentation

◆ TimerList

TimerList_t Timing::TimerList
private

Definition at line 164 of file IpplTimings.h.

Referenced by clearTimer(), getTimer(), print(), print(), startTimer(), stopTimer(), Timing(), and ~Timing().

◆ TimerMap

TimerMap_t Timing::TimerMap
private

Definition at line 167 of file IpplTimings.h.

Referenced by getTimer(), infoTimer(), Timing(), and ~Timing().


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