Name

TAU_PROFILER_GET_COUNTER_INFO — Returns information about all the timers created.

Synopsis

C/C++:
TAU_PROFILER_GET_COUNTER_INFO( counters,  
  num_counters);  
const char *   counters;
int &  num_counters;

description

TAU_PROFILER_GET_COUNTER_INFO Gets the number of counters created and an array of the counters containing information about the counters.

example

>C/C++:

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

TAU_PROFILER_START(ptr);
foo(2);
TAU_PROFILER_STOP(ptr);

const char **counters;
int numcounters;

TAU_PROFILER_GET_COUNTER_INFO(&counters, &numcounters);
printf("numcounters = %d\n", numcounters);
for (j = 0; j < numcounters ; j++) 
{
	printf(">>>");
	printf("counter [%d] = %s\n", j, counters[j]);
}