MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / list_timings

Method list_timings

cpp/dolfinx/common/TimeLogger.cpp:41–51  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

39}
40//-----------------------------------------------------------------------------
41void 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//-----------------------------------------------------------------------------
53Table TimeLogger::timing_table() const
54{

Callers

nothing calls this directly

Calls 3

timing_tableMethod · 0.95
reduceMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected