OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
Profiler Class Reference

#include <Profiler.h>

Collaboration diagram for Profiler:
Collaboration graph
[legend]

Public Member Functions

 Profiler (FunctionInfo *fi, unsigned int ProfileGroup=0xffffffff, bool StartStop=false)
 
void Start ()
 
 Profiler (const Profiler &X)
 
Profileroperator= (const Profiler &X)
 
void Stop ()
 
 ~Profiler ()
 
int StoreData (void)
 

Static Public Member Functions

static void ProfileExit (const char *message=0)
 

Public Attributes

double StartTime
 
FunctionInfoThisFunction
 
ProfilerParentProfiler
 

Static Public Attributes

static ProfilerCurrentProfiler [1024] = {0}
 

Private Attributes

unsigned int MyProfileGroup_
 
bool StartStopUsed_
 
bool AddInclFlag
 

Detailed Description

Definition at line 241 of file Profiler.h.

Constructor & Destructor Documentation

Profiler::Profiler ( FunctionInfo fi,
unsigned int  ProfileGroup = 0xffffffff,
bool  StartStop = false 
)

Definition at line 376 of file Profiler.cpp.

References CurrentProfiler, RtsLayer::myThread(), ParentProfiler, Start(), StartStopUsed_, and ThisFunction.

Here is the call graph for this function:

Profiler::Profiler ( const Profiler X)

Definition at line 391 of file Profiler.cpp.

References CurrentProfiler, DEBUGPROFMSG, endl(), and RtsLayer::myThread().

Here is the call graph for this function:

Profiler::~Profiler ( )

Definition at line 500 of file Profiler.cpp.

References DEBUGPROFMSG, endl(), FunctionInfo::GetName(), RtsLayer::isCtorDtor(), RtsLayer::myNode(), ParentProfiler, StartStopUsed_, Stop(), StoreData(), and ThisFunction.

Here is the call graph for this function:

Member Function Documentation

Profiler & Profiler::operator= ( const Profiler X)

Definition at line 409 of file Profiler.cpp.

References DEBUGPROFMSG, endl(), MyProfileGroup_, ParentProfiler, StartStopUsed_, StartTime, and ThisFunction.

Here is the call graph for this function:

void Profiler::ProfileExit ( const char *  message = 0)
static
void Profiler::Start ( void  )
void Profiler::Stop ( )
int Profiler::StoreData ( void  )

Definition at line 558 of file Profiler.cpp.

References DEBUGPROFMSG, RtsLayer::DumpEDF(), endl(), FunctionInfo::FunctionDB, RtsLayer::myContext(), RtsLayer::myNode(), RtsLayer::myThread(), and RtsLayer::ProfileMask.

Referenced by ProfileExit(), and ~Profiler().

Here is the call graph for this function:

Member Data Documentation

bool Profiler::AddInclFlag
private

Definition at line 269 of file Profiler.h.

Referenced by Start(), and Stop().

Profiler * Profiler::CurrentProfiler = {0}
static

Definition at line 261 of file Profiler.h.

Referenced by ProfileExit(), Profiler(), Start(), and Stop().

unsigned int Profiler::MyProfileGroup_
private

Definition at line 267 of file Profiler.h.

Referenced by operator=().

Profiler* Profiler::ParentProfiler

Definition at line 264 of file Profiler.h.

Referenced by operator=(), ProfileExit(), Profiler(), Start(), Stop(), and ~Profiler().

bool Profiler::StartStopUsed_
private

Definition at line 268 of file Profiler.h.

Referenced by operator=(), Profiler(), and ~Profiler().

double Profiler::StartTime

Definition at line 262 of file Profiler.h.

Referenced by operator=(), Start(), and Stop().

FunctionInfo* Profiler::ThisFunction

Definition at line 263 of file Profiler.h.

Referenced by operator=(), ProfileExit(), Profiler(), Start(), Stop(), and ~Profiler().


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