-----------------------------------------------------------------------------
| 39 | } |
| 40 | //----------------------------------------------------------------------------- |
| 41 | void TimeLogger::list_timings(MPI_Comm comm, Table::Reduction reduction) const |
| 42 | { |
| 43 | // Format and reduce to rank 0 |
| 44 | Table timings = this->timing_table(); |
| 45 | timings = timings.reduce(comm, reduction); |
| 46 | const std::string str = "\n" + timings.str(); |
| 47 | |
| 48 | // Print just on rank 0 |
| 49 | if (dolfinx::MPI::rank(comm) == 0) |
| 50 | std::cout << str << '\n'; |
| 51 | } |
| 52 | //----------------------------------------------------------------------------- |
| 53 | Table TimeLogger::timing_table() const |
| 54 | { |
nothing calls this directly
no test coverage detected