TAU_DYNAMIC_TIMER_ST(3)

Name
TAU_DYNAMIC_TIMER_STOP - Starts a dynamic timer.

Synopsis

C/C++:

TAU_DYNAMIC_TIMER_STOP(String name);

Fortran:

TAU_DYNAMIC_TIMER_STOP(integer iteration, char name(size));

Description

Stops a new dynamic timer concating the iterator to the end of the name.timer

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)

See Also

TAU_PROFILE_TIMER(3), TAU_PROFILE_STOP(3)