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

#include <Profiler.h>

Public Member Functions

 FunctionInfo (const char *name, const char *type, unsigned int ProfileGroup=0xffffffff, const char *ProfileGroupName="TAU_DEFAULT")
 
 FunctionInfo (std::string &name, const char *type, unsigned int ProfileGroup=0xffffffff, const char *ProfileGroupName="TAU_DEFAULT")
 
 FunctionInfo (const char *name, std::string &type, unsigned int ProfileGroup=0xffffffff, const char *ProfileGroupName="TAU_DEFAULT")
 
 FunctionInfo (std::string &name, std::string &type, unsigned int ProfileGroup=0xffffffff, const char *ProfileGroupName="TAU_DEFAULT")
 
 FunctionInfo (const FunctionInfo &X)
 
 ~FunctionInfo ()
 
FunctionInfooperator= (const FunctionInfo &X)
 
void ExcludeTime (double t)
 
void AddInclTime (double t)
 
void AddExclTime (double t)
 
void IncrNumCalls (void)
 
bool GetAlreadyOnStack (void)
 
void SetAlreadyOnStack (bool value)
 
const char * GetName () const
 
const char * GetType () const
 
const char * GetPrimaryGroup () const
 
long GetFunctionId () const
 
long GetCalls () const
 
long GetSubrs () const
 
double GetExclTime () const
 
double GetInclTime () const
 
unsigned int GetProfileGroup () const
 

Public Attributes

std::string Name
 
std::string Type
 
std::string GroupName
 
long FunctionId
 

Static Public Attributes

static std::vector
< FunctionInfo * > 
FunctionDB [1024]
 

Private Attributes

long NumCalls
 
long NumSubrs
 
double ExclTime
 
double InclTime
 
bool AlreadyOnStack
 
unsigned int MyProfileGroup_
 

Detailed Description

Definition at line 98 of file Profiler.h.

Constructor & Destructor Documentation

FunctionInfo::FunctionInfo ( const char *  name,
const char *  type,
unsigned int  ProfileGroup = 0xffffffff,
const char *  ProfileGroupName = "TAU_DEFAULT" 
)

Definition at line 102 of file Profiler.cpp.

References DEBUGPROFMSG, endl(), RtsLayer::myNode(), RtsLayer::myThread(), name, RtsLayer::PrimaryGroup(), and RtsLayer::ProfileMask.

Here is the call graph for this function:

FunctionInfo::FunctionInfo ( std::string &  name,
const char *  type,
unsigned int  ProfileGroup = 0xffffffff,
const char *  ProfileGroupName = "TAU_DEFAULT" 
)
FunctionInfo::FunctionInfo ( const char *  name,
std::string &  type,
unsigned int  ProfileGroup = 0xffffffff,
const char *  ProfileGroupName = "TAU_DEFAULT" 
)
FunctionInfo::FunctionInfo ( std::string &  name,
std::string &  type,
unsigned int  ProfileGroup = 0xffffffff,
const char *  ProfileGroupName = "TAU_DEFAULT" 
)
FunctionInfo::FunctionInfo ( const FunctionInfo X)

Definition at line 274 of file Profiler.cpp.

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

Here is the call graph for this function:

FunctionInfo::~FunctionInfo ( )

Definition at line 303 of file Profiler.cpp.

Member Function Documentation

void FunctionInfo::AddExclTime ( double  t)
inline

Definition at line 205 of file Profiler.h.

References ExclTime.

Referenced by Profiler::Stop().

void FunctionInfo::AddInclTime ( double  t)
inline

Definition at line 199 of file Profiler.h.

References InclTime.

Referenced by Profiler::Stop().

void FunctionInfo::ExcludeTime ( double  t)
inline

Definition at line 191 of file Profiler.h.

References ExclTime, and NumSubrs.

Referenced by Profiler::Stop().

bool FunctionInfo::GetAlreadyOnStack ( void  )
inline

Definition at line 223 of file Profiler.h.

References AlreadyOnStack.

Referenced by Profiler::Start().

long FunctionInfo::GetCalls ( ) const
inline

Definition at line 169 of file Profiler.h.

References NumCalls.

double FunctionInfo::GetExclTime ( ) const
inline

Definition at line 171 of file Profiler.h.

References ExclTime.

long FunctionInfo::GetFunctionId ( ) const
inline

Definition at line 168 of file Profiler.h.

References FunctionId.

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

double FunctionInfo::GetInclTime ( ) const
inline

Definition at line 172 of file Profiler.h.

References InclTime.

const char* FunctionInfo::GetName ( ) const
inline

Definition at line 165 of file Profiler.h.

References Name.

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

const char* FunctionInfo::GetPrimaryGroup ( ) const
inline

Definition at line 167 of file Profiler.h.

References GroupName.

unsigned int FunctionInfo::GetProfileGroup ( ) const
inline

Definition at line 173 of file Profiler.h.

References MyProfileGroup_.

long FunctionInfo::GetSubrs ( ) const
inline

Definition at line 170 of file Profiler.h.

References NumSubrs.

const char* FunctionInfo::GetType ( ) const
inline

Definition at line 166 of file Profiler.h.

References Type.

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

void FunctionInfo::IncrNumCalls ( void  )
inline

Definition at line 211 of file Profiler.h.

References NumCalls.

Referenced by Profiler::Start().

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

Definition at line 288 of file Profiler.cpp.

References DEBUGPROFMSG, endl(), ExclTime, InclTime, MyProfileGroup_, Name, NumCalls, NumSubrs, and Type.

Here is the call graph for this function:

void FunctionInfo::SetAlreadyOnStack ( bool  value)
inline

Definition at line 217 of file Profiler.h.

References AlreadyOnStack.

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

Member Data Documentation

bool FunctionInfo::AlreadyOnStack
private

Definition at line 154 of file Profiler.h.

Referenced by GetAlreadyOnStack(), and SetAlreadyOnStack().

double FunctionInfo::ExclTime
private

Definition at line 152 of file Profiler.h.

Referenced by AddExclTime(), ExcludeTime(), GetExclTime(), and operator=().

vector< FunctionInfo * > FunctionInfo::FunctionDB
static

Definition at line 135 of file Profiler.h.

Referenced by RtsLayer::DumpEDF(), FunctionInfo(), and Profiler::StoreData().

long FunctionInfo::FunctionId

Definition at line 163 of file Profiler.h.

Referenced by GetFunctionId().

std::string FunctionInfo::GroupName

Definition at line 162 of file Profiler.h.

Referenced by GetPrimaryGroup().

double FunctionInfo::InclTime
private

Definition at line 153 of file Profiler.h.

Referenced by AddInclTime(), GetInclTime(), and operator=().

unsigned int FunctionInfo::MyProfileGroup_
private

Definition at line 180 of file Profiler.h.

Referenced by GetProfileGroup(), and operator=().

std::string FunctionInfo::Name

Definition at line 160 of file Profiler.h.

Referenced by GetName(), and operator=().

long FunctionInfo::NumCalls
private

Definition at line 150 of file Profiler.h.

Referenced by GetCalls(), IncrNumCalls(), and operator=().

long FunctionInfo::NumSubrs
private

Definition at line 151 of file Profiler.h.

Referenced by ExcludeTime(), GetSubrs(), and operator=().

std::string FunctionInfo::Type

Definition at line 161 of file Profiler.h.

Referenced by GetType(), and operator=().


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