PETSc version 3.16.5
Fix/Edit manual page

# 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 Key

| -memory_view | - Print memory usage at end of run
| -malloc_log | - Activate logging of memory usage

### See Also

PetscMallocGetMaximumUsage(), PetscMemoryGetCurrentUsage(), PetscMallocGetCurrentUsage(),
PetscMemoryGetMaximumUsage()

### Level

intermediate

### Location

src/sys/memory/mem.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages