petsc4py.PETSc.LogEvent#

class petsc4py.PETSc.LogEvent#

Bases: object

Logging support.

Methods Summary

activate()

Indicate that the event should be logged.

begin(*objs)

Log the beginning of a user event.

deactivate()

Indicate that the event should not be logged.

end(*objs)

Log the end of a user event.

getActive()

Not implemented.

getActiveAll()

Not implemented.

getName()

The current event name.

getPerfInfo([stage])

Get the performance information about the given event in the given event.

setActive([flag])

Indicate whether or not the event should be logged.

setActiveAll([flag])

Turn on logging of all events.

Attributes Summary

active

Event activation.

active_all

All events activation.

id

The log event identifier.

name

The current event name.

Methods Documentation

activate()#

Indicate that the event should be logged.

Logically collective.

Source code at petsc4py/PETSc/Log.pyx:591

Return type:

None

begin(*objs)#

Log the beginning of a user event.

Collective.

Parameters:

*objs – objects associated with the event

Return type:

None

Source code at petsc4py/PETSc/Log.pyx:535

deactivate()#

Indicate that the event should not be logged.

Logically collective.

Source code at petsc4py/PETSc/Log.pyx:603

Return type:

None

end(*objs)#

Log the end of a user event.

Collective.

Parameters:

*objs – Objects associated with the event.

Return type:

None

See also

PetscLogEventEnd

Source code at petsc4py/PETSc/Log.pyx:554

getActive()#

Not implemented.

Source code at petsc4py/PETSc/Log.pyx:615

Return type:

bool

getActiveAll()#

Not implemented.

Source code at petsc4py/PETSc/Log.pyx:648

Return type:

bool

getName()#

The current event name.

Source code at petsc4py/PETSc/Log.pyx:574

Return type:

str

getPerfInfo(stage=None)#

Get the performance information about the given event in the given event.

Not collective.

Parameters:

stage (int | None) – The stage number.

Returns:

info – This structure is filled with the performance information.

Return type:

dict

Source code at petsc4py/PETSc/Log.pyx:682

setActive(flag=True)#

Indicate whether or not the event should be logged.

Logically collective.

Parameters:

flag (bool) – Activate or deactivate the event.

Return type:

None

Source code at petsc4py/PETSc/Log.pyx:620

setActiveAll(flag=True)#

Turn on logging of all events.

Logically collective.

Parameters:

flag (bool) – Activate (if True) or deactivate (if False) the logging of all events.

Return type:

None

Source code at petsc4py/PETSc/Log.pyx:653

Attributes Documentation

active#

Event activation.

Source code at petsc4py/PETSc/Log.pyx:640

active_all#

All events activation.

Source code at petsc4py/PETSc/Log.pyx:672

id#

The log event identifier.

Source code at petsc4py/PETSc/Log.pyx:517

name#

The current event name.

Source code at petsc4py/PETSc/Log.pyx:580