Name
TAU_PROFILE_STOP — Stops a timer.
Synopsis
C/C++:
TAU_PROFILE_STOP(
timer)
;
Profiler timer;
Fortran:
TAU_PROFILE_STOP(
profiler)
;
integer profiler(2);
Description
Stops the timer given by timer
. It is
important to note that timers can be nested, but not overlapping. TAU
detects programming errors that lead to such overlaps at runtime, and
prints a warning message.
Example
C/C++ :
int foo(int a) { TAU_PROFILE_TIMER(timer, "foo", "int (int)", TAU_USER); TAU_PROFILE_START(timer); ... TAU_PROFILE_STOP(timer); return a; }
Fortran :
subroutine F1() integer profiler(2) / 0, 0 / save profiler call TAU_PROFILE_TIMER(profiler,'f1()') call TAU_PROFILE_START(profiler) ... call TAU_PROFILE_STOP(profiler) end