heim-process 0.0.9

Cross-platform processes information
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// macOS-specific extension to process [Memory] information.
///
/// [Memory]: ../../struct.Memory.html
#[heim_derive::os_ext_for(crate::Memory, cfg(target_os = "macos"))]
pub trait MemoryExt {
    /// Returns the amount of page faults.
    fn faults(&self) -> u64;

    /// Returns the amount of actual pageins.
    fn pageins(&self) -> u64;
}