Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tau_profile_timer_dynamic(3) [debian man page]

TAU_PROFILE_TIMER_DY(3) 				      TAU Instrumentation API					   TAU_PROFILE_TIMER_DY(3)

NAME
TAU_PROFILE_TIMER_DYNAMIC - Defines a dynamic timer. SYNOPSIS
C/C++: TAU_PROFILE_TIMER_DYNAMIC(Profiler timer, char* or string& function_name, char* or string& type, TauGroup_t group); Fortran: TAU_PROFILE_TIMER_DYNAMIC(integer profiler(2), character name(size)); DESCRIPTION
TAU_PROFILE_TIMER_DYNAMIC operates similar to TAU_PROFILE_TIMER except that the timer is created each time the statement is invoked. This way, the name of the timer can be different for each execution. EXAMPLE
C/C++ : int main(int argc, char **argv) { int i; TAU_PROFILE_TIMER(t,"main()", "", TAU_DEFAULT); TAU_PROFILE_SET_NODE(0); TAU_PROFILE_START(t); for (i=0; i&5; i++) { char buf[32]; sprintf(buf, "Iteration %d", i); TAU_PROFILE_TIMER_DYNAMIC(timer, buf, "", TAU_USER); TAU_PROFILE_START(timer); printf("Iteration %d ", i); f1(); TAU_PROFILE_STOP(timer); } return 0; } Fortran : subroutine ITERATION(val) integer val character(13) cvar integer profiler(2) / 0, 0 / save profiler print *, "Iteration ", val write (cvar,'(a9,i2)') 'Iteration', val call TAU_PROFILE_TIMER_DYNAMIC(profiler, cvar) call TAU_PROFILE_START(profiler) call F1() call TAU_PROFILE_STOP(profiler) return end SEE ALSO
TAU_PROFILE_TIMER(3), TAU_PROFILE_START(3), TAU_PROFILE_STOP(3) 08/31/2005 TAU_PROFILE_TIMER_DY(3)

Check Out this Related Man Page

TAU_PHASE_CREATE_DYN(3) 				      TAU Instrumentation API					   TAU_PHASE_CREATE_DYN(3)

NAME
TAU_PHASE_CREATE_DYNAMIC - Defines a dynamic phase. SYNOPSIS
C/C++: TAU_PHASE_CREATE_DYNAMIC(Phase phase, char* or string& function_name, char* or string& type, TauGroup_t group); Fortran: TAU_PHASE_CREATE_DYNAMIC(integer phase(2), character name(size)); DESCRIPTION
TAU_PHASE_CREATE_DYNAMIC creates a dynamic phase. The name of the timer can be different for each execution. EXAMPLE
C/C++ : int main(int argc, char **argv) { int i; TAU_PROFILE_TIMER(t,"main()", "", TAU_DEFAULT); TAU_PROFILE_SET_NODE(0); TAU_PROFILE_START(t); for (i=0; i&5; i++) { char buf[32]; sprintf(buf, "Iteration %d", i); TAU_PHASE_CREATE_DYNAMIC(timer, buf, "", TAU_USER); TAU_PHASE_START(timer); printf("Iteration %d ", i); f1(); TAU_PHASE_STOP(timer); } return 0; } Fortran : subroutine ITERATION(val) integer val character(13) cvar integer profiler(2) / 0, 0 / save profiler print *, "Iteration ", val write (cvar,'(a9,i2)') 'Iteration', val call TAU_PHASE_CREATE_DYNAMIC(profiler, cvar) call TAU_PHASE_START(profiler) call F1() call TAU_PHASE_STOP(profiler) return end SEE ALSO
TAU_PHASE_CREATE_STATIC(3), TAU_PHASE_START(3), TAU_PHASE_STOP(3) 08/31/2005 TAU_PHASE_CREATE_DYN(3)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

function profiler for HPUX...?

I need some kind of profiler that will tell me how much time is spent in each function. I'm running HPUX. Thanks for the suggestions. (1 Reply)
Discussion started by: clockworks
1 Replies

2. Programming

C/C++ Appliaction Profiler

Dear All, I have my C/C++ appliaction running on Sun Solaris 5.9. Can any of you please suggest a profiler which i can use for improving the code performance. Please reply as i am stuck with the performance of the code. (1 Reply)
Discussion started by: ashisharora
1 Replies

3. Shell Programming and Scripting

profiler

What is a hard and soft match in unix profiler ??? (1 Reply)
Discussion started by: ekharvi
1 Replies

4. AIX

Error when trying to use GNU profiler on AIX

Hello, I'm trying to compile my code with ‘-pg' option in order to use GNU profiler as follows: gcc example1.c -pg -o example1 -O2 -lc But I'm getting this error : collect2: gcrt0.o: cannot open as COFF file I'm working on AIX 5.3 Thanks in advance for your help (17 Replies)
Discussion started by: SteAlma
17 Replies