TAU_GLOBAL_TIMER3
Declares a global timer
Usage
C/C++:
TAU_GLOBAL_TIMER(Profiler timer, char* or string& function_name, char* or string& type, TauGroup_t group);
Overview
As TAU_PROFILE_TIMER is used within the scope of a block (typically a routine), TAU_GLOBAL_TIMER can be used across different routines.
Examples
C/C++ :
/* f1.c */
TAU_GLOBAL_TIMER(globalTimer, "global timer", "", TAU_USER);
/* f2.c */
TAU_GLOBAL_TIMER_EXTERNAL(globalTimer);
int foo(void) {
TAU_GLOBAL_TIMER_START(globalTimer);
/* ... */
TAU_GLOBAL_TIMER_STOP();
}
Releases
Unchanged in 5 releases since Debian 4.0 (Etch).