PLogEventActivate

Indicates that a particular event should be logged. The event may be either a pre-defined PETSc event (found in include/petsclog.h) or an event number obtained with PLogEventRegister().

Synopsis

#include "petsc.h"   
int PLogEventActivate(int event)
Not Collective

Input Parameter

event -integer indicating event

Usage

      PLogEventDeactivate(VEC_SetValues);
        [code where you do not want to log VecSetValues()]
      PLogEventActivate(VEC_SetValues);
        [code where you do want to log VecSetValues()]

See Also

PLogEventMPEDeactivate(),PLogEventMPEActivate(),PlogEventDeactivate()

Level:advanced
Location:
src/sys/src/plog/plog.c
Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/examples/tutorials/ex3.c
src/sys/examples/tutorials/ex3f.F