<div dir="ltr"><div dir="ltr">On Tue, Jun 10, 2025 at 5:30 AM SCOTTO Alexandre via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-5147562443721486098">





<div lang="EN-GB">
<div class="m_-5147562443721486098WordSection1">
<p class="MsoNormal"><span lang="FR">Dear PETSc community,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="FR"><u></u> <u></u></span></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have used the -log_view option to get information on the run in a dedicated file, and I got this (among other infirmation):<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:36pt"><span><img width="582" height="115" style="width: 6.0625in; height: 1.1979in;" id="m_-5147562443721486098Image_x0020_1" src="cid:ii_197599828d64cff311"></span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36pt"><u></u> <u></u></p>
<p class="MsoNormal">This is precisely the information I am interested in, but here only the process 0 is tracked.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.</p></div></div></div></blockquote><div><br></div><div>You want to access</div><div><br></div><div>  <a href="https://urldefense.us/v3/__https://petsc.org/main/manualpages/Log/PetscLogState/__;!!G_uCfscf7eWS!YfTSxLTF2TerpXGAhCfoL7bYAcosI6xV6JXwYXOjaVkt88NjAYm_-_WFn7x-IoWWTraAZ1iXE8ZCAY8QEn26$">https://petsc.org/main/manualpages/Log/PetscLogState/</a></div><div><br></div><div>which you get using</div><div><br></div><div>  <a href="https://urldefense.us/v3/__https://petsc.org/main/manualpages/Log/PetscLogGetState/__;!!G_uCfscf7eWS!YfTSxLTF2TerpXGAhCfoL7bYAcosI6xV6JXwYXOjaVkt88NjAYm_-_WFn7x-IoWWTraAZ1iXE8ZCASEp9DWe$">https://petsc.org/main/manualpages/Log/PetscLogGetState/</a></div><div><br></div><div>   Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-5147562443721486098"><div lang="EN-GB"><div class="m_-5147562443721486098WordSection1">
<p class="MsoNormal">Thanks in advance,<u></u><u></u></p>
<p class="MsoNormal">Regards.<u></u><u></u></p>
</div>
</div>

</div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!YfTSxLTF2TerpXGAhCfoL7bYAcosI6xV6JXwYXOjaVkt88NjAYm_-_WFn7x-IoWWTraAZ1iXE8ZCAXDRiM26$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>