Dumps the allocated memory blocks to a file. The information printed is: size of space (in bytes), address of space, id of space, file in which space was allocated, and line number at which it was allocated.
PetscErrorCode PetscMallocDump(FILE *fp)
Collective on PETSC_COMM_WORLD
fp -file pointer. If fp is NULL, stdout is assumed.
Options Database Key
-malloc_dump -Dumps unfreed memory during call to PetscFinalize()
The calling sequence in Fortran is PetscMallocDump(integer ierr)
The fp defaults to stdout.
uses MPI_COMM_WORLD, because this may be called in PetscFinalize() after PETSC_COMM_WORLD
has been freed.
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages