3 unstable releases

0.2.0 Aug 4, 2022
0.1.1 Jul 19, 2022
0.1.0 Jul 19, 2022

#910 in Unix APIs

Download history 4/week @ 2024-02-18 7/week @ 2024-02-25 1/week @ 2024-03-03 57/week @ 2024-03-31

57 downloads per month
Used in cpulimit

LGPL-3.0-only

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.8–7MB
~31K SLoC