[petsc-users] PetscMemoryGetMaximumUsage

Jed Brown jedbrown at mcs.anl.gov
Mon Jul 8 15:47:07 CDT 2013


Michael Povolotskyi <mpovolot at purdue.edu> writes:

> Dear Petsc developers and users,
> is there any example that shows how to use the 
> PetscMemoryGetMaximumUsage function?

It works like this:

  PetscMemorySetGetMaximumUsage(); // somewhere early in your program, or run with -malloc_log

  // create and destroy some objects

  PetscLogDouble mem;
  PetscMemoryGetMaximumUsage(&mem);


http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscMemoryGetMaximumUsage.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130708/34451ef9/attachment.pgp>


More information about the petsc-users mailing list