---
name: "TAU_ENABLE_INSTRUMENTATION"
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_ENABLE_INSTRUMENTATION"
---

# TAU\_ENABLE\_INSTRUMENTATION(3)

Enables instrumentation

## NAME

TAU\_ENABLE\_INSTRUMENTATION - Enables instrumentation

## SYNOPSIS

**C/C++:**

**TAU\_ENABLE\_INSTRUMENTATION(void);**

**Fortran:**

**TAU\_ENABLE\_INSTRUMENTATION(void);**

## DESCRIPTION

TAU\_ENABLE\_INSTRUMENTATION macro re-enables all TAU instrumentation. All instances of functions and statements that occur between the disable/enable section are ignored by TAU. This allows a user to limit the trace size, if the macros are used to disable recording of a set of iterations that have the same characteristics as, for example, the first recorded instance.

## EXAMPLE

**C/C++ :**

```
int main(int argc, char **argv) {
  foo();
  TAU_DISABLE_INSTRUMENTATION();
  for (int i =0; i < N; i++) {
    bar();  // not recorded
  }
  TAU_ENABLE_INSTRUMENTATION();
  bar(); // recorded
}
```

**Fortran :**

```
call TAU_DISABLE_INSTRUMENTATION()
call TAU_ENABLE_INSTRUMENTATION()
```

## SEE ALSO

[TAU\_DISABLE\_INSTRUMENTATION(3)](/TAU_DISABLE_INSTRUMENTATION/3.md), [TAU\_ENABLE\_GROUP(3)](/TAU_ENABLE_GROUP/3.md), [TAU\_DISABLE\_GROUP(3)](/TAU_DISABLE_GROUP/3.md), [TAU\_INIT(3)](/TAU_INIT/3.md), [TAU\_PROFILE\_INIT(3)](/TAU_PROFILE_INIT/3.md)
