PetscLogHandlerSetLogActions#
Determines whether actions are logged for a log handler.
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscLogHandlerSetLogActions(PetscLogHandler handler, PetscBool flag)
Not Collective
Input Parameters#
handler - a
PetscLogHandlerflag -
PETSC_TRUEif actions are to be logged (ignored ifhandlerdoes not log actions)
Notes#
The default log handler PETSCLOGHANDLERDEFAULT implements this function, but others generally do not. You can use
PetscLogSetLogActions() to call this function for the default log handler that is connected to the global
logging state (PetscLogGetState()).
Logging of actions continues to consume more memory as the program runs. Long running programs should consider turning this feature off.
See Also#
Profiling, PetscLogSetLogActions(), PetscLogStagePush(), PetscLogStagePop(), PetscLogGetDefaultHandler()
Level#
developer
Location#
Implementations#
PetscLogHandlerSetLogActions_Default() in src/sys/logging/handler/impls/default/logdefault.c
Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages