( zenv: &mut KEnv<M>, entries: Vec<(KId<M>, KConst<M>)>, )
| 3586 | self.output_consts += other.output_consts; |
| 3587 | self.missing_consts += other.missing_consts; |
| 3588 | self.lookup_ns += other.lookup_ns; |
| 3589 | self.const_get_ns += other.const_get_ns; |
| 3590 | self.convert_ns += other.convert_ns; |
| 3591 | self.insert_ns += other.insert_ns; |
| 3592 | self.insert_blocks_ns += other.insert_blocks_ns; |
| 3593 | self.insert_consts_ns += other.insert_consts_ns; |
| 3594 | self.convert_stats = self.convert_stats.merge(&other.convert_stats); |
| 3595 | self |
| 3596 | } |
| 3597 | } |
| 3598 | |
| 3599 | #[cfg(not(target_arch = "riscv64"))] |
| 3600 | #[derive(Default)] |
| 3601 | struct IxonDropTiming { |
| 3602 | consts_ns: u64, |
| 3603 | named_ns: u64, |
| 3604 | names_ns: u64, |
| 3605 | blobs_ns: u64, |
| 3606 | comms_ns: u64, |
| 3607 | } |
| 3608 | |
| 3609 | #[cfg(not(target_arch = "riscv64"))] |
| 3610 | struct LookupDropTiming { |
| 3611 | names_ns: u64, |
| 3612 | name_to_addr_ns: u64, |
| 3613 | } |
| 3614 | |
| 3615 | fn duration_ns(d: Duration) -> u64 { |
| 3616 | u64::try_from(d.as_nanos()).unwrap_or(u64::MAX) |
| 3617 | } |
| 3618 | |
| 3619 | fn elapsed_ns(start: Instant) -> u64 { |
| 3620 | duration_ns(start.elapsed()) |
| 3621 | } |
no test coverage detected