PetscLogStagePush#

This function pushes a stage on the logging stack. Events started and stopped until PetscLogStagePop() will be associated with the stage

Synopsis#

#include "petscsys.h"   
PetscErrorCode PetscLogStagePush(PetscLogStage stage)

Not Collective

Input Parameter#

  • stage - The stage on which to log

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().

      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();

Note#

Use PetscLogStageRegister() to register a stage.

See Also#

Profiling, PetscLogStagePop(), PetscLogStageRegister(), PetscBarrier()

Level#

intermediate

Location#

src/sys/logging/plog.c

Examples#

src/ksp/ksp/tutorials/bench_kspsolve.c
src/ksp/ksp/tutorials/ex18.c
src/ksp/ksp/tutorials/ex1f.F90
src/ksp/ksp/tutorials/ex29.c
src/ksp/ksp/tutorials/ex46.c
src/ksp/ksp/tutorials/ex5.c
src/ksp/ksp/tutorials/ex52.c
src/ksp/ksp/tutorials/ex54.c
src/ksp/ksp/tutorials/ex55.c
src/ksp/ksp/tutorials/ex56.c
src/ksp/ksp/tutorials/ex5f.F90


Edit on GitLab

Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages