Function sample
pub fn sample() -> ProcessStatsExpand description
Sample current RSS + CPU%. Cheap to call — refreshes only this process and only the CPU/memory fields. Safe to call from any thread.
pub fn sample() -> ProcessStatsSample current RSS + CPU%. Cheap to call — refreshes only this process and only the CPU/memory fields. Safe to call from any thread.