---
name: "TAU_PROFILER_GET_CALLS"
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_CALLS"
---

# TAU\_PROFILER\_GET\_CALLS(3)

." make the size of the head bigger **NAME** **TAU\_PROFILER\_GET\_CALLS - Gets the number of times this timer, created by TAU\_PROFILER\_CREATE, is started.**

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

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

**TAU\_PROFILER\_GET\_CALLS(Timer** *timer***, long&** *calls***);**

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

**TAU\_PROFILER\_GET\_CALLS** returns the number of times this timer is started (ie. The number of times the section of code being profiled was executed).

." 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);
long calls;
TAU_PROFILER_GET_CALLS(ptr, &calls);
```

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

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