pub(crate) fn write_timing_report<W: Write>( writer: &mut W, graph: &Graph, report: &TimingReport, ) -> Result<()>