Name

TAU_PROFILER_GET_CHILD_CALLS_TASK — Gets the number of child call for this timer, created by TAU_PROFILER_CREATE, is started on a task.

Synopsis

C/C++:
TAU_PROFILER_GET_CHILD_CALLS_TASK( timer,  
  child_calls,  
  taskid);  
Timer   timer;
long&   child_calls;
int   taskid;

description

TAU_PROFILER_GET_CHILD_CALLS_TASK 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;
int taskid;
TAU_PROFILER_CREATE(ptr, "foo","", TAU_USER);
TAU_CREATE_TASK(taskid);
TAU_PROFILER_START_TASK(ptr, taskid);
foo(2);
long child_calls;
TAU_PROFILER_GET_CHILD_CALLS_TASK(ptr, &child_calls, taskid);