Name

TAU_PROFILER_GET_CALLS_TASK — Gets the number of times this timer, created by TAU_PROFILER_CREATE, is started on a given task.

Synopsis

C/C++:
TAU_PROFILER_GET_CALLS_TASK( timer,  
  calls,  
  taskid);  
Timer   timer;
long&   calls;
int   taskid;

description

TAU_PROFILER_GET_CALLS_TASK returns the number of times this timer is started (ie. The number of times the section of code being profiled was executed) on a given task.

example

>C/C++:

void *ptr;
int taskid;
TAU_PROFILER_CREATE(ptr, "foo","", TAU_USER);
TAU_CREATE_TASK(taskid);
TAU_PROFILER_START_TASK(ptr, taskid);
foo(2);
long calls;
TAU_PROFILER_GET_CALLS_TASK(ptr, &calls, taskid);