Michael Povolotskyi <[email protected]> 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

Attachment: pgpI7npbHIO1y.pgp
Description: PGP signature

Reply via email to