Skip to main content

heim_process/os/macos/
memory.rs

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