monitoring.py

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

petgem.monitoring.monitoring.printTimes(times_array)[source]

Print, in a pretty manner, a times array.

Parameters:times_array (list) – array of times for each PETGEM phase.
petgem.monitoring.monitoring.timing(name_function)[source]

Measure spent time in a given function.

Parameters:name_function (str) – name function to be measured.
petgem.monitoring.monitoring.unitary_test()[source]

Unitary test for mesh.py script.