---
name: "TAU_ENABLE_TRACKING_MEMORY"
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_TRACKING_MEMORY"
---

# TAU\_ENABLE\_TRACKING\_MEMORY(3)

Enables memory tracking

## NAME

TAU\_ENABLE\_TRACKING\_MEMORY - Enables memory tracking

## SYNOPSIS

**C/C++:**

**TAU\_ENABLE\_TRACKING\_MEMORY(void);**

**Fortran:**

**TAU\_ENABLE\_TRACKING\_MEMORY(void);**

## DESCRIPTION

Enables tracking of the heap memory utilization in the program. TAU takes a sample of the heap memory utilized (as reported by the mallinfo system call) and associates it with a single global user defined event. An interrupt is generated every 10 seconds and the value of the heap memory used is recorded in the user defined event. The inter-interrupt interval (default of 10 seconds) may be set by the user using the call TAU\_SET\_INTERRUPT\_INTERVAL.

## EXAMPLE

**C/C++ :**

```
TAU_ENABLE_TRACKING_MEMORY();
```

**Fortran :**

```
call TAU_ENABLE_TRACKING_MEMORY()
```

## SEE ALSO

[TAU\_DISABLE\_TRACKING\_MEMORY(3)](/TAU_DISABLE_TRACKING_MEMORY/3.md), [TAU\_SET\_INTERRUPT\_INTERVAL(3)](/TAU_SET_INTERRUPT_INTERVAL/3.md), [TAU\_TRACK\_MEMORY(3)](/TAU_TRACK_MEMORY/3.md), [TAU\_TRACK\_MEMORY\_HERE(3)](/TAU_TRACK_MEMORY_HERE/3.md)
