3 unstable releases
0.2.0 | Aug 4, 2022 |
---|---|
0.1.1 | Jul 19, 2022 |
0.1.0 | Jul 19, 2022 |
#834 in Unix APIs
372 downloads per month
Used in cpulimit
18KB
385 lines
cpulimiter
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();
lib.rs
:
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();
Dependencies
~0.6–6MB
~28K SLoC