table of contents
TAU_PROFILER_GET_COU(3) | Tau API | TAU_PROFILER_GET_COU(3) |
NAME
SYNOPSIS
C/C++:
TAU_PROFILER_GET_COUNTER_INFO(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.
DESCRIPTION
EXAMPLE
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]); }
SEE ALSO
08/12/2008 | [FIXME: source] |