PetscMemorySetGetMaximumUsage#
Tells PETSc to monitor the maximum memory usage so that PetscMemoryGetMaximumUsage() will work.
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscMemorySetGetMaximumUsage(void)
Not Collective
Options Database Keys#
-memory_view (true|false) - Print memory usage at end of run to
PETSC_VIEWER_STDOUT_WORLD-log_view_memory (true|false) - Display memory information for each logged event
-malloc_view [filename] - Print usage of
PetscMalloc()inPetscFinalize()
See Also#
PetscMallocGetMaximumUsage(), PetscMemoryGetCurrentUsage(), PetscMallocGetCurrentUsage(),
PetscMemoryGetMaximumUsage()
Level#
intermediate
Location#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages