PLogStagePop

Users can log up to 10 stages within a code by using -log_summary in conjunction with PLogStagePush() and PLogStagePop().

Synopsis

#include "petsc.h"   
int PLogStagePop(void)
Not Collective

Usage

If the option -log_sumary is used to run the program containing the following code, then 2 sets of summary data will be printed during PetscFinalize().
      PetscInitialize(int *argc,char ***args,0,0);
      [stage 0 of code]   
      PLogStagePush(1);
      [stage 1 of code]
      PLogStagePop();
      PetscBarrier(...);
      [more stage 0 of code]   
      PetscFinalize();

Notes

Use PLogStageRegister() to register a stage.

Keywords

log, pop, stage

See Also

PLogStagePush(), PLogStageRegister(), PetscBarrier()

Examples

src/mat/examples/tutorials/ex1.c
src/sles/examples/tutorials/ex5.c
src/sles/examples/tutorials/ex10.c
src/sles/examples/tutorials/ex9.c

Level:intermediate
Location:src/sys/src/plog/plog.c
Logging Index
Table of Contents