Name

TAU_PROFILER_GET_INCLUSIVE_VALUES_TASK — Returns the inclusive amount of a metric spend by this timer on a given task.

Synopsis

C/C++:
TAU_PROFILER_GET_INCLUSIVE_VALUES_TASK( timer,  
  incl,  
  taskid);  
Timer   timer;
double&   incl;
int   taskid;

description

TAU_PROFILER_GET_INCLUSIVE_VALUES_TASK Returns the inclusive amount of a metric spend while this timer was running (and any subsequent timers called from this timer) 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(ptr);
foo(2);
TAU_PROFILER_STOP(ptr);

double incl[TAU_MAX_COUNTERS];
TAU_PROFILER_GET_INCLUSIVE_VALUES_TASK(ptr, &incl, taskid);