Package petsc4py :: Module PETSc :: Class Log
[hide private]
[frames] | no frames]

Class Log


Instance Methods [hide private]
 
Class(type cls, name)
 
Event(type cls, name, klass=None)
 
EventDecorator(type cls, name=None, klass=None)
Decorate a function with a PETSc event.
 
Stage(type cls, name)
a new object with type S, a subtype of T
__new__(S, ...)
 
addFlops(type cls, flops)
 
begin(type cls, all=False)
 
getCPUTime(type cls)
 
getFlops(type cls)
 
getTime(type cls)
 
isActive(type cls)
Return True if logging is switched on and False otherwise.
 
logFlops(type cls, flops)
 
view(type cls, Viewer viewer=None)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

EventDecorator(type cls, name=None, klass=None)

 
Decorate a function with a PETSc event.

        If no event name is specified it will default to the name of the function.
        
        Usage:
            @EventDecorator("My Function")
            def myfunc():
                ...

            or

            @EventDecorator()
            def myfunc():
                ...
        

__new__(S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__