---
name: "TAU_TRACK_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_TRACK_MEMORY"
---

# TAU\_TRACK\_MEMORY(3)

Initializes memory tracking system

## NAME

TAU\_TRACK\_MEMORY - Initializes memory tracking system

## SYNOPSIS

**C/C++:**

**TAU\_TRACK\_MEMORY(void);**

**Fortran:**

**TAU\_TRACK\_MEMORY(void);**

## DESCRIPTION

For memory profiling, there are two modes of operation: 1) the user explicitly inserts TAU\_TRACK\_MEMORY\_HERE() calls in the source code and the memory event is triggered at those locations, and 2) the user enables tracking memory by calling TAU\_TRACK\_MEMORY() and an interrupt is generated every 10 seconds and the memory event is triggered with the current value. Also, this interrupt interval can be changed by calling TAU\_SET\_INTERRUPT\_INTERVAL(value). The tracking of memory events in both cases can be explictly enabled or disabled by calling the macros TAU\_ENABLE\_TRACKING\_MEMORY() or TAU\_DISABLE\_TRACKING\_MEMORY() respectively.

## EXAMPLE

**C/C++ :**

```
TAU_TRACK_MEMORY();
```

**Fortran :**

```
call TAU_TRACK_MEMORY()
```

## SEE ALSO

[TAU\_ENABLE\_TRACKING\_MEMORY(3)](/TAU_ENABLE_TRACKING_MEMORY/3.md), [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\_HERE(3)](/TAU_TRACK_MEMORY_HERE/3.md), [TAU\_TRACK\_MEMORY\_HEADROOM(3)](/TAU_TRACK_MEMORY_HEADROOM/3.md)
