---
name: "TAU_DISABLE_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_DISABLE_INSTRUMENTATION"
---

# TAU\_DISABLE\_INSTRUMENTATION(3)

Disables instrumentation

## NAME

TAU\_DISABLE\_INSTRUMENTATION - Disables instrumentation

## SYNOPSIS

**C/C++:**

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

**Fortran:**

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

## DESCRIPTION

TAU\_DISABLE\_INSTRUMENTATION macro disables all entry/exit instrumentation within all threads of a context. This allows the user to selectively enable and disable instrumentation in parts of his/her code. It is important to re-enable the instrumentation within the same basic block and scope.

## EXAMPLE

**C/C++ :**

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

**Fortran :**

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

## SEE ALSO

[TAU\_ENABLE\_INSTRUMENTATION(3)](/TAU_ENABLE_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)
