petsc-3.9.4 2018-09-11
Report Typos and Errors


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.


#include "petscsys.h" 
PetscErrorCode  PetscMallocDump(FILE *fp)
Collective on PETSC_COMM_WORLD

Input Parameter

fp -file pointer. If fp is NULL, stdout is assumed.

Options Database Key

-malloc_dump -Dumps unfreed memory during call to PetscFinalize()

Fortran Note

The calling sequence in Fortran is PetscMallocDump(integer ierr) The fp defaults to stdout.

Notes: uses MPI_COMM_WORLD, because this may be called in PetscFinalize() after PETSC_COMM_WORLD has been freed.

See Also

PetscMallocGetCurrentUsage(), PetscMallocDumpLog()




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