dump_timings_to_xml

dolfin.cpp.common.dump_timings_to_xml(filename, clear)

Dump a summary of timings and tasks to XML file, optionally clearing stored timings. MPI_MAX, MPI_MIN and MPI_AVG reductions are stored. Collective on MPI_COMM_WORLD.

Arguments
filename (str)
output filename; must have .xml suffix; existing file is silently overwritten
clear (TimingClear)
  • TimingClear_clear resets stored timings
  • TimingClear_keep leaves stored timings intact