Teuchos::TimeMonitor::report, YAML output follows a different code path for aggregating and reducing timers, ignoring the parameter list options.
Created by: jjellio
I've caught a bug with TimeMonitor::report, when YAML is specified as the output format. The output from stdout (report as TABLE) is different from the output when YAML is requested.
What appears to be the issue is that zeroTimers on rank zero are dropped, which is bad news for kernels like MueLu where various ranks will not all share the same timer labels.
I've looked at the source code with @jhux2 and @aprokop. This looks like an obvious bug. The code paths are convoluted, with two versions of report() each performing different MPI reductions.
It seems the correct solution would be to refactor report, so that the stat_map is constructed first. Then specific report() functions are called that display that map following the desired formatting. I.e., decouple data aggregation from report formatting.
@trilinos/teuchos