Name

TAU_TRACK_MEMORY_FOOTPRINT_HERE — Triggers memory footprint tracking at a given execution point

Synopsis

C/C++:

TAU_TRACK_MEMORY_FOOTPRINT_HERE();

Fortran:

TAU_TRACK_MEMORY_FOOTPRINT_HERE();

Description

Similar to TAU_TRACK_MEMORY_HERE but uses the Virtual Memory Resident Set Size (VmRSS) and High Water Mark (VmHWM) to produce an interval event and an atomic event respectively.

Example

C/C++ :

int main(int argc, char **argv) {
  TAU_PROFILE("main()", " ", TAU_DEFAULT);
  TAU_PROFILE_SET_NODE(0);

  TAU_TRACK_MEMORY_FOOTPRINT_HERE();

  int *x = new int[5*1024*1024];
  TAU_TRACK_MEMORY_FOOTPRINT_HERE();
  return 0;
}
    

Fortran :

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


call TAU_TRACK_MEMORY_FOOTPRINT_HERE()