PetscMallocViewSet#

Activates logging of all calls to PetscMalloc() with a minimum size to view

Synopsis#

#include "petscsys.h" 
PetscErrorCode PetscMallocViewSet(PetscLogDouble logmin)

Not Collective

Input Parameter#

Options Database Key#

  • -malloc_view - Activates PetscMallocView() in PetscFinalize()

  • -malloc_view_threshold - Sets a minimum size if -malloc_view is used

  • -log_view_memory - view the memory usage also with the -log_view option

Notes#

Must be called after PetscMallocSetDebug()

Uses MPI_COMM_WORLD to determine rank because PETSc communicators may not be available

See Also#

PetscMallocDump(), PetscMallocView(), PetscMallocViewSet(), PetscMallocTraceSet(), PetscMallocValidate()

Level#

advanced

Location#

src/sys/memory/mtr.c


Edit on GitLab

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