pub fn get_process_time_stat(pid: u32) -> Result<ProcessTimeStat, ScannerError>
Expand description

Get the time stat of a specific process found by ID by reading the /proc/PID/stat file.

use mprober_lib::process;

let process_time_stat = process::get_process_time_stat(1).unwrap();

println!("{process_time_stat:#?}");