void PLogEventEnd(int e,PetscObject o1,PetscObject o2,PetscObject o3, PetscObject o4)
PETSc automatically logs library events if the code has beencompiled with -DUSE_PETSC_LOG, and -log, -log_summary, or -log_all arespecified. PLogEventEnd() is intended for logging user eventsto supplement this PETSc information.
int USER_EVENT;
int user_event_flops;
PLogEventRegister(&USER_EVENT,"User event","Color:");
PLogEventBegin(USER_EVENT,0,0,0,0);
[code segment to monitor]
PLogFlops(user_event_flops);
PLogEventEnd(USER_EVENT,0,0,0,0);
Location: include/petsclog.h
Logging Index
Table of Contents