Poster of Linux kernelThe best gift for a Linux geek
TAU_TRACK_MEMORY_HER

TAU_TRACK_MEMORY_HER

Section: TAU Instrumentation API (3) Updated: 08/31/2005
Local index Up
 

NAME

TAU_TRACK_MEMORY_HERE - Triggers memory tracking at a given execution point  

SYNOPSIS

C/C++:

TAU_TRACK_MEMORY_HERE(void);

Fortran:

TAU_TRACK_MEMORY_HERE(void);
 

DESCRIPTION

Triggers memory tracking at a given execution point  

EXAMPLE

C/C++ :

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

  TAU_TRACK_MEMORY_HERE();

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

Fortran :

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

! if we wish to record a sample of the heap memory 
! utilization at this point, invoke the following call:
call TAU_TRACK_MEMORY_HERE()

    
 

SEE ALSO

TAU_TRACK_MEMORY(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:56:50 GMT, April 16, 2011