On Tue, Jun 10, 2025 at 5:30 AM SCOTTO Alexandre via petsc-users < petsc-users@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$ >