Write a chunk of benchmark command output to the terminal: into the rolling buffer when one is active, otherwise verbatim to `writer`.
(text: &str, raw_bytes: &[u8], writer: &mut impl Write)
| 63 | /// Write a chunk of benchmark command output to the terminal: into the rolling |
| 64 | /// buffer when one is active, otherwise verbatim to `writer`. |
| 65 | pub(crate) fn write_command_output(text: &str, raw_bytes: &[u8], writer: &mut impl Write) { |
| 66 | if rolling_buffer::try_push(text) { |
| 67 | return; |
| 68 | } |
| 69 | suspend_progress_bar(|| writer.write_all(raw_bytes).unwrap()); |
| 70 | } |
| 71 | |
| 72 | /// A snapshot of a log record that can be stored across the rolling-buffer |
| 73 | /// lifetime (the original `log::Record` borrows data and cannot be kept). |
no test coverage detected