petsc-3.7.1 2016-05-15
PetscStageLogPush
This function pushes a stage on the stack.
Synopsis
#include "petscsys.h"
PetscErrorCode PetscStageLogPush(PetscStageLog stageLog, int stage)
Not Collective Many br
Input Parameters
| stageLog | - The PetscStageLog Many br |
| stage | - The stage to log Many br |
Database Options
-log_summary -Activates logging Many br
Usage
If the option -log_sumary is used to run the program containing the Many brfollowing code, then 2 sets of summary data will be printed during Many brPetscFinalize(). Many br
PetscInitialize(int *argc,char ***args,0,0);
[stage 0 of code]
PetscStageLogPush(stageLog,1);
[stage 1 of code]
PetscStageLogPop(stageLog);
PetscBarrier(...);
[more stage 0 of code]
PetscFinalize();
Many br
Notes
Use PetscLogStageRegister() to register a stage. All previous stages are Many braccumulating time and flops, but events will only be logged in this stage. Many br
Many br
Keywords
log, push, stage
See Also
PetscStageLogPop(), PetscStageLogGetCurrent(), PetscStageLogRegister(), PetscLogGetStageLog()
Level:developer
Location:src/sys/logging/utils/stagelog.c
Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages