PLogStagePush
Users can log up to 10 stages within a code by using -log_summary in conjunction with PLogStagePush() and PLogStagePop().
Synopsis
int PLogStagePush(int stage)
Not
Collective
Input Parameter
stage -stage on which to log (0 <= stage <= 9)
Example of Usage
If the option -log_sumary is used to run the program containing
thefollowing code, then 3 sets of summary data will be printed
duringPetscFinalize().
PetscInitialize(int *argc,char ***args,0,0);
[stage 0 of code]
for (i=0; i<ntimes; i++) {
PLogStagePush(1);
[stage 1 of code]
PLogStagePop()
PLogStagePush(2);
[stage 2 of code]
PLogStagePop()
}
PetscFinalize();
Notes
Use PLogStageRegister() to register a stage.
Keywords
log, push, stage
See Also
PLogStagePop(), PLogStageRegister()
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
Location: src/plog/src/plog.c
Logging Index
Table of Contents