34 #ifndef __H__UG__COMMON__PROFILER__RUNTIME_PROFILE_INFO__
35 #define __H__UG__COMMON__PROFILER__RUNTIME_PROFILE_INFO__
55 class RuntimeProfileInfo
58 RuntimeProfileInfo(
const char*
name = NULL,
bool bCopyName =
false,
59 const char* groups = NULL,
bool bCopyGroup =
false,
60 const char* file = NULL,
bool bCopyFile =
false,
63 ~RuntimeProfileInfo();
65 inline void beginNode()
67 #ifdef UG_PROFILER_SHINY
68 Shiny::ProfileManager::instance._beginNode(&profilerCache, &profileInformation);
71 #ifdef UG_PROFILER_SCALASCA
72 EPIK_USER_START(pName);
74 #ifdef UG_PROFILER_VAMPIR
75 VT_USER_START((
char*)pName);
77 #ifdef UG_PROFILER_SCOREP
78 SCOREP_USER_REGION_BEGIN( m_pHandle, pName,
79 SCOREP_USER_REGION_TYPE_COMMON )
85 #ifdef UG_PROFILER_SHINY
86 Shiny::ProfileManager::instance._endCurNode();
89 #ifdef UG_PROFILER_SCALASCA
92 #ifdef UG_PROFILER_VAMPIR
93 VT_USER_END((
char*)pName);
95 #ifdef UG_PROFILER_SCOREP
96 SCOREP_USER_REGION_END(m_pHandle);
101 const char *
name()
const
106 const char *group()
const
111 const char *file()
const
130 #ifdef UG_PROFILER_SHINY
131 Shiny::ProfileZone profileInformation;
132 Shiny::ProfileNodeCache profilerCache;
134 #ifdef UG_PROFILER_SCOREP
135 SCOREP_User_RegionHandle m_pHandle;
139 static inline std::ostream&
operator << (std::ostream& os,
const RuntimeProfileInfo &pi)
141 os <<
"RuntimeProfileInfo name=" << pi.name() <<
" group=" << pi.group() <<
" @ " << pi.file() <<
":" << pi.line();
145 typedef RuntimeProfileInfo* pRuntimeProfileInfo;
location name
Definition: checkpoint_util.lua:128
std::ostream & operator<<(std::ostream &outStream, const ug::MathMatrix< 2, 2 > &m)
Definition: math_matrix.cpp:38
#define PROFILE_LOG_CALL_START()
Definition: shiny_call_logging.h:48
#define PROFILE_LOG_CALL_END()
Definition: shiny_call_logging.h:49