PetscMemoryTrace#

Print the current and high-water memory usage and the delta since the last call, tagged with a user-supplied label

Synopsis#

#include "petscsys.h"   
PetscErrorCode PetscMemoryTrace(const char label[])

Collective on PETSC_COMM_WORLD; No Fortran Support

Input Parameter#

  • label - short string used to tag the printed line so successive calls can be distinguished

Note#

Useful for tracking down memory growth between major phases of an application. Uses PetscMemoryGetCurrentUsage() and PetscMallocGetCurrentUsage() internally.

See Also#

PetscMemoryGetCurrentUsage(), PetscMallocGetCurrentUsage(), PetscMallocDump()

Level#

developer

Location#

src/sys/memory/mal.c


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages