PLogBegin

Turns on logging of objects and events. This logs flop rates and object creation and should not slow programs down too much. This routine may be called more than once.

Synopsis

int PLogBegin(void)
Collective over PETSC_COMM_WORLD

Options Database Keys

-log_summary - Prints summary of flop and timing information to the screen (for code compiled with USE_PETSC_LOG)
-log - Prints detailed log information (for code compiled with USE_PETSC_LOG)

Usage

      PetscInitialize(...);
      PLogBegin();
       ... code ...
      PLogPrintSummary(MPI_Comm,filename); or PLogDump(); 
      PetscFinalize();

Notes

PLogPrintSummary(MPI_Comm,filename) or PLogDump() actually cause the printing of the logging information.

Keywords

log, begin

See Also

PLogDump(), PLogAllBegin(), PLogPrintSummary(), PLogTraceBegin()

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