PetscGetResidentSetSize
Returns the maximum resident set size (memory used) for the program.
Synopsis
#include "petsc.h"
int PetscGetResidentSetSize(PLogDouble *foo)
Not Collective
Output Parameter
mem -memory usage in bytes
Options Database Key
-get_resident_set_size -Print memory usage at end of run
-trmalloc_log -Activate logging of memory usage
Notes
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
usage than PetscTrSpace() for codes that employ Fortran with
hardwired arrays.
See Also
PetscTrSpace()
Keywords
get, resident, set, size
Level:intermediate
Location:src/sys/src/memory/mem.c
System Index
Table of Contents