monitoring.py

Define functions for performance monitoring such as timers and HW counters.

petgem.monitoring.monitoring.getTime()[source]

Start a timer in a parallel pool.

Param:None
Returns:logTimer
Return type:petsc log timer
petgem.monitoring.monitoring.printElapsedTimes(elapsedTimeAssembly, elapsedTimeSolver, elapsedTimePostprocessing, iterationNumber, rank)[source]

Print elapsed times in assembly, solver and postprocessing tasks.

Parameters:
  • elapsedTimeAssembly (float) – elapsed time in assembly task
  • elapsedTimeSolver (float) – elapsed time in assembly task
  • elapsedTimePostprocessing (float) – elapsed time in assembly task
  • iterationNumber (int) – number of solver iterations
  • rank (int) – MPI rank
petgem.monitoring.monitoring.startLogEvent(eventName)[source]

Enable a logging event in a parallel pool.

Parameters:eventName (str) – name of the log Event
Returns:logEvent
Return type:petsc logging event
petgem.monitoring.monitoring.unitary_test()[source]

Unitary test for monitoring.py script.