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)#
Source code at petsc4py/PETSc/Log.pyx:25
- Return type:
- classmethod Event(name, klass=None)#
Source code at petsc4py/PETSc/Log.pyx:39
- Return type:
- classmethod EventDecorator(name=None, klass=None)#
Decorate a function with a
PETSc
event.Source code at petsc4py/PETSc/Log.pyx:178
- Return type:
- classmethod Stage(name)#
Source code at petsc4py/PETSc/Log.pyx:11
- Return type:
- 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
Source code at petsc4py/PETSc/Log.pyx:55
- Return type:
- 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