MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / record_total_and_average

Function record_total_and_average

xtask/src/main.rs:5052–5064  ·  view source on GitHub ↗
(
    total_name: &'static str,
    average_name: &'static str,
    elapsed: Duration,
    iterations: usize,
)

Source from the content-addressed store, hash-verified

5050}
5051
5052fn 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
5066fn unique_perf_root(name: &str) -> Result<PathBuf> {
5067 let now = SystemTime::now()

Calls 1

record_phase_timingFunction · 0.85

Tested by

no test coverage detected