petsc4py.PETSc.Log#
- class petsc4py.PETSc.Log#
Bases:
object
Logging support.
Methods Summary
Class
(name)Event
(name[, klass])EventDecorator
([name, klass])Decorate a function with a
PETSc
event.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
- classmethod begin()#
Turn on logging of objects and events.
Collective.
See also
- 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
- classmethod getTime()#
Return the current time of day in seconds.
Collective.
- Returns:
wctime – Current time.
- Return type:
See also
- classmethod isActive()#
Return whether logging is currently in progress.
Not collective.
See also
Source code at petsc4py/PETSc/Log.pyx:193
- Return type:
- classmethod logFlops(flops)#
Add floating point operations to the current event.
Not collective.
See also