Function limits_rs::get_pid_limits
source · Expand description
Get the limits for a specific process identifier.
Along get_own_limits
, this method provides the core functionality of this crate.
Examples
use limits_rs::get_pid_limits;
// Let's check what the CPU time hard limit is for process `1`.
let limits = get_pid_limits(1).unwrap();
let max_cpu_time_hard_limit = limits.max_cpu_time.hard;