Function mprober_lib::process::get_process_with_stat
source · pub fn get_process_with_stat(
pid: u32
) -> Result<(Process, ProcessStat), ScannerError>Expand description
Get information of a specific process found by ID by reading files in the /proc/PID folder.
use mprober_lib::process;
let (process, _) = process::get_process_with_stat(1).unwrap();
println!("{process:#?}");