Name
TAU_DYNAMIC_TIMER_START — Starts a dynamic timer.
Synopsis
C/C++:
TAU_DYNAMIC_TIMER_START(
name)
;
String name;
Fortran:
TAU_DYNAMIC_TIMER_START( |
iteration, | |
name) ;
|
integer | iteration; |
char | name(size); |
Example
C/C++ :
int foo(int a) { TAU_PROFILE_TIMER(timer, "foo", "int (int)", TAU_USER); TAU_DYNAMIC_TIMER_START(timer); ... TAU_PROFILE_STOP(timer); return a; }
Fortran :
integer tau_iteration / 0 / save tau_iteration call TAU_PROFILE_TIMER(profiler, 'FOO1 [{foo.f90} {16,18}]') call TAU_PROFILE_START(profiler) print *, "inside foo1: calling bar, x = ", x tau_iteration = tau_iteration + 1 call TAU_DYNAMIC_TIMER_START(tau_iteration,"foo1_bar"); call bar(x-1) print *, "after calling bar" call TAU_DYNAMIC_TIMER_STOP(tau_iteration,"foo1_bar"); call TAU_PROFILE_STOP(profiler)