1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/// macOS-specific extension to process [Memory] information. /// /// [Memory]: ../../struct.Memory.html pub trait MemoryExt { /// Returns the amount of page faults. fn faults(&self) -> u64; /// Returns the amount of actual pageins. fn pageins(&self) -> u64; } impl MemoryExt for crate::Memory { fn faults(&self) -> u64 { self.as_ref().faults() } fn pageins(&self) -> u64 { self.as_ref().pageins() } }