OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <Profiler.h>
Public Member Functions | |
Profiler (FunctionInfo *fi, unsigned int ProfileGroup=0xffffffff, bool StartStop=false) | |
void | Start () |
Profiler (const Profiler &X) | |
Profiler & | operator= (const Profiler &X) |
void | Stop () |
~Profiler () | |
int | StoreData (void) |
Static Public Member Functions | |
static void | ProfileExit (const char *message=0) |
Public Attributes | |
double | StartTime |
FunctionInfo * | ThisFunction |
Profiler * | ParentProfiler |
Static Public Attributes | |
static Profiler * | CurrentProfiler [1024] = {0} |
Private Attributes | |
unsigned int | MyProfileGroup_ |
bool | StartStopUsed_ |
bool | AddInclFlag |
Definition at line 241 of file Profiler.h.
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.
Profiler::Profiler | ( | const Profiler & | X | ) |
Definition at line 391 of file Profiler.cpp.
References CurrentProfiler, DEBUGPROFMSG, endl(), and RtsLayer::myThread().
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.
Definition at line 409 of file Profiler.cpp.
References DEBUGPROFMSG, endl(), MyProfileGroup_, ParentProfiler, StartStopUsed_, StartTime, and ThisFunction.
|
static |
Definition at line 525 of file Profiler.cpp.
References CurrentProfiler, DEBUGPROFMSG, endl(), FunctionInfo::GetName(), FunctionInfo::GetType(), RtsLayer::isCtorDtor(), RtsLayer::myNode(), RtsLayer::myThread(), ParentProfiler, Stop(), StoreData(), and ThisFunction.
void Profiler::Start | ( | void | ) |
Definition at line 330 of file Profiler.cpp.
References AddInclFlag, CurrentProfiler, DEBUGPROFMSG, endl(), FunctionInfo::GetAlreadyOnStack(), FunctionInfo::GetFunctionId(), FunctionInfo::GetName(), FunctionInfo::GetType(), RtsLayer::getUSecD(), FunctionInfo::IncrNumCalls(), RtsLayer::myNode(), RtsLayer::myThread(), ParentProfiler, FunctionInfo::SetAlreadyOnStack(), StartTime, and ThisFunction.
Referenced by Profiler().
void Profiler::Stop | ( | ) |
Definition at line 429 of file Profiler.cpp.
References FunctionInfo::AddExclTime(), AddInclFlag, FunctionInfo::AddInclTime(), CurrentProfiler, DEBUGPROFMSG, endl(), FunctionInfo::ExcludeTime(), FunctionInfo::GetFunctionId(), FunctionInfo::GetName(), FunctionInfo::GetType(), RtsLayer::getUSecD(), RtsLayer::myNode(), RtsLayer::myThread(), ParentProfiler, FunctionInfo::SetAlreadyOnStack(), StartTime, and ThisFunction.
Referenced by ProfileExit(), and ~Profiler().
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().
|
private |
Definition at line 269 of file Profiler.h.
|
static |
Definition at line 261 of file Profiler.h.
Referenced by ProfileExit(), Profiler(), Start(), and Stop().
|
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().
|
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().