# PetscMemoryShowUsage

Shows the amount of memory currently being used in a communicator.

### Synopsis

    #include "petsc.h"
    PetscErrorCode PETSC_DLLEXPORT PetscMemoryShowUsage(PetscViewer viewer,const char message[])

Collective on PetscViewer

### Input Parameter

| viewer | - the viewer that defines the communicator
| message | - string printed before values

### See Also

PetscMemoryDump(), PetscMemoryGetCurrentUsage()

Level:intermediate
Location:src/sys/src/memory/mtr.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages