Name
TAU_PROFILER_GET_COUNTER_INFO_TASK — Returns information about all the timers created on a task.
Synopsis
C/C++:
TAU_PROFILER_GET_COUNTER_INFO_TASK( |
counters, | |
| num_counters, | ||
taskid);
|
| const char * | counters; |
| int & | num_counters; |
| int | taskid; |
description
TAU_PROFILER_GET_COUNTER_INFO_TASK
Gets the number of counters created and an array of the counters
containing information about the counters 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);
TAU_PROFILER_STOP_TASK(ptr, taskid);
const char **counters;
int numcounters;
TAU_PROFILER_GET_COUNTER_INFO_TASK(&counters, &numcounters, taskid);
printf("numcounters = %d\n", numcounters);
for (j = 0; j < numcounters ; j++)
{
printf(">>>");
printf("counter [%d] = %s\n", j, counters[j]);
}