# PetscLogStagePop This function pops a stage from the logging stack that was pushed with `PetscLogStagePush()` ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscLogStagePop(void) ``` Not Collective ## Usage If the option -log_view is used to run the program containing the following code, then 2 sets of summary data will be printed during PetscFinalize(). ```none PetscInitialize(int *argc,char ***args,0,0); [stage 0 of code] PetscLogStagePush(1); [stage 1 of code] PetscLogStagePop(); PetscBarrier(...); [more stage 0 of code] PetscFinalize(); ``` ## See Also [](ch_profiling), `PetscLogStagePush()`, `PetscLogStageRegister()`, `PetscBarrier()` ## Level intermediate ## Location src/sys/logging/plog.c ## Examples src/vec/vec/tutorials/performance.c.html
src/ksp/pc/tutorials/ex3.c.html
src/ksp/ksp/tutorials/bench_pcsetup.c.html
src/ksp/ksp/tutorials/ex18.c.html
src/ksp/ksp/tutorials/ex1f.F90.html
src/ksp/ksp/tutorials/ex29.c.html
src/ksp/ksp/tutorials/ex46.c.html
src/ksp/ksp/tutorials/ex5.c.html
src/ksp/ksp/tutorials/ex52.c.html
src/ksp/ksp/tutorials/ex54.c.html
src/ksp/ksp/tutorials/ex55.c.html
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/logging/plog.c) [Index of all Profiling routines](index.md) [Table of Contents for all manual pages](/docs/manualpages/index.md) [Index of all manual pages](/docs/manualpages/singleindex.md)