Name

TAU_PROFILER_GET_CALLS — Gets the number of times this timer, created by TAU_PROFILER_CREATE, is started.

Synopsis

C/C++:
TAU_PROFILER_GET_CALLS( timer,  
  calls);  
Timer   timer;
long&   calls;

description

TAU_PROFILER_GET_CALLS returns the number of times this timer is started (ie. The number of times the section of code being profiled was executed).

example

>C/C++:

void *ptr;
TAU_PROFILER_CREATE(ptr, "foo","", TAU_USER);

TAU_PROFILER_START(ptr);
foo(2);
long calls;
TAU_PROFILER_GET_CALLS(ptr, &calls);