---
name: "TAU_PROFILER_GET_COUNTER_INFO"
section: "3"
platform: "linux"
package: "tau"
version: "2.17.3.1.dfsg-4.2"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/TAU_PROFILER_GET_COUNTER_INFO"
---

# TAU\_PROFILER\_GET\_COUNTER\_INFO(3)

." make the size of the head bigger **NAME** **TAU\_PROFILER\_GET\_COUNTER\_INFO - Returns information about all the timers created.**

**." make the size of the head bigger** **SYNOPSIS**

```
C/C++:
```

**TAU\_PROFILER\_GET\_COUNTER\_INFO(const char \*** *counters***, int &***num\_counters***);**

**." make the size of the head bigger** **DESCRIPTION**

**TAU\_PROFILER\_GET\_COUNTER\_INFO** Gets the number of counters created and an array of the counters containing information about the counters.

." make the size of the head bigger **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]);
}
```

." make the size of the head bigger **SEE ALSO**

**TAU\_PROFILER\_CREATE** **TAU\_PROFILER\_START** **TAU\_PROFILER\_STOP** **TAU\_PROFILER\_GET\_CALLS** **TAU\_PROFILER\_GET\_CHILD\_CALLS** **TAU\_PROFILER\_GET\_INCLUSIVE\_VALUES** **TAU\_PROFILER\_GET\_ExCLUSIVE\_VALUES**
