[petsc-users] Profiling objects creation
Matthew Knepley
knepley at gmail.com
Tue Jun 10 06:27:41 CDT 2025
On Tue, Jun 10, 2025 at 5:30 AM SCOTTO Alexandre via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Dear PETSc community,
>
>
>
> I am using the PETSc API petsc4py and I am interested in profiling the
> number of PETSc objects created during the run of my script.
>
>
>
> I have used the -log_view option to get information on the run in a
> dedicated file, and I got this (among other infirmation):
>
>
>
>
>
> This is precisely the information I am interested in, but here only the
> process 0 is tracked.
>
>
>
> I is possible to have the same type of information for all the processes?
> I went through the documentation and was not able to figure it out.
>
You want to access
https://urldefense.us/v3/__https://petsc.org/main/manualpages/Log/PetscLogState/__;!!G_uCfscf7eWS!YfTSxLTF2TerpXGAhCfoL7bYAcosI6xV6JXwYXOjaVkt88NjAYm_-_WFn7x-IoWWTraAZ1iXE8ZCAY8QEn26$
which you get using
https://urldefense.us/v3/__https://petsc.org/main/manualpages/Log/PetscLogGetState/__;!!G_uCfscf7eWS!YfTSxLTF2TerpXGAhCfoL7bYAcosI6xV6JXwYXOjaVkt88NjAYm_-_WFn7x-IoWWTraAZ1iXE8ZCASEp9DWe$
Thanks,
Matt
> Thanks in advance,
>
> Regards.
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!YfTSxLTF2TerpXGAhCfoL7bYAcosI6xV6JXwYXOjaVkt88NjAYm_-_WFn7x-IoWWTraAZ1iXE8ZCAXQMXkrF$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!YfTSxLTF2TerpXGAhCfoL7bYAcosI6xV6JXwYXOjaVkt88NjAYm_-_WFn7x-IoWWTraAZ1iXE8ZCAXDRiM26$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250610/f39c49bc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6518 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250610/f39c49bc/attachment-0001.png>
More information about the petsc-users
mailing list