pub trait CpuStatsExt {
fn soft_interrupts(&self) -> u64;
fn syscalls(&self) -> u64;
}
#[cfg(target_os = "macos")]
impl CpuStatsExt for crate::CpuStats {
fn soft_interrupts(&self) -> u64 {
self.as_ref().soft_interrupts()
}
fn syscalls(&self) -> u64 {
self.as_ref().syscalls()
}
}