TAU_TRACK_MEMORY_HEADROOM_HERE(3)

TAU_TRACK_MEMORY_HEADROOM_HERE3

Takes a sample of the amount of memory available at a given point.

Usage

C/C++:

TAU_TRACK_MEMORY_HEADROOM_HERE(void);

Fortran:

TAU_TRACK_MEMORY_HEADROOM_HERE(void);

Overview

Instead of relying on a periodic interrupt to track the amount of memory available to grow, this call may be used to take a sample at a given location in the source code. Context events are used to track the amount of memory headroom.

Examples

C/C++ :

ary = new double [1024*1024*50];
TAU_TRACK_MEMORY_HEADROOM_HERE();

Fortran :

INTEGER, ALLOCATABLE :: STORAGEARY(:)
allocate(STORAGEARY(1:999), STAT=IERR)
TAU_TRACK_MEMORY_HEADROOM_HERE();

Releases

Unchanged in 5 releases since Debian 4.0 (Etch).

  1. 4.0–9

From tau 2.17.3.1.dfsg-4.2 in Debian 9 (Stretch). Parsed by carta from the page's man source.