petsc4py.PETSc.Log¶
- class petsc4py.PETSc.Log¶
Bases:
objectLogging support.
Methods Summary
Class(name)Event(name[, klass])EventDecorator([name, klass])Decorate a function with a
PETScevent.Stage(name)addFlops(flops)Add floating point operations to the current event.
begin()Turn on logging of objects and events.
Return the CPU time.
getFlops()Return the number of flops used on this processor since the program began.
getTime()Return the current time of day in seconds.
isActive()Return whether logging is currently in progress.
logFlops(flops)Add floating point operations to the current event.
view([viewer])Print the log.
Methods Documentation
- classmethod Class(name)¶
- classmethod Event(name, klass=None)¶
- classmethod Stage(name)¶
- classmethod addFlops(flops)¶
Add floating point operations to the current event.
Not collective.
Notes
This method exists for backward compatibility.
See also
logFlops,petsc.PetscLogFlops
- classmethod begin()¶
Turn on logging of objects and events.
Collective.
See also
petsc.PetscLogDefaultBegin
- classmethod getCPUTime()¶
Return the CPU time.
Source code at petsc4py/PETSc/Log.pyx:171
- Return type:
- classmethod getFlops()¶
Return the number of flops used on this processor since the program began.
Not collective.
- Returns:
Number of floating point operations.
- Return type:
See also
petsc.PetscGetFlops
- classmethod getTime()¶
Return the current time of day in seconds.
Collective.
- Returns:
wctime – Current time.
- Return type:
See also
petsc.PetscTime
- classmethod isActive()¶
Return whether logging is currently in progress.
Not collective.
See also
petsc.PetscLogIsActiveSource code at petsc4py/PETSc/Log.pyx:193
- Return type:
- classmethod logFlops(flops)¶
Add floating point operations to the current event.
Not collective.
See also
petsc.PetscLogFlops