Returns the maximum resident set size (memory used) for the program since it started (the high water mark).
mem - memory usage in bytes
Options Database Key#
-memory_view - Print memory usage at end of run
-log_view_memory - Print memory information per event
-malloc_log - Activate logging of memory usage
The memory usage reported here includes all Fortran arrays
(that may be used in application-defined sections of code).
This routine thus provides a more complete picture of memory
PetscMallocGetCurrentUsage() for codes that employ Fortran with