Crate cpulimiter
source · [−]Expand description
Limit the CPU usage of a process.
Example
use cpulimiter::{CpuLimit, Pid};
let handle = CpuLimit::new(Pid::from(1048), 10.0).unwrap();
handle.set_limit(42.0);
handle.stop();
Limit the CPU usage of a process.
use cpulimiter::{CpuLimit, Pid};
let handle = CpuLimit::new(Pid::from(1048), 10.0).unwrap();
handle.set_limit(42.0);
handle.stop();