(
total_name: &'static str,
average_name: &'static str,
elapsed: Duration,
iterations: usize,
)
| 5050 | } |
| 5051 | |
| 5052 | fn record_total_and_average( |
| 5053 | total_name: &'static str, |
| 5054 | average_name: &'static str, |
| 5055 | elapsed: Duration, |
| 5056 | iterations: usize, |
| 5057 | ) { |
| 5058 | record_phase_timing(total_name, elapsed); |
| 5059 | let average = elapsed.as_micros() / iterations as u128; |
| 5060 | record_phase_timing( |
| 5061 | average_name, |
| 5062 | Duration::from_micros(average.try_into().unwrap_or(u64::MAX)), |
| 5063 | ); |
| 5064 | } |
| 5065 | |
| 5066 | fn unique_perf_root(name: &str) -> Result<PathBuf> { |
| 5067 | let now = SystemTime::now() |
no test coverage detected