cpulimiter

Crates.iocpulimiter
lib.rscpulimiter
version0.2.0
sourcesrc
created_at2022-07-19 07:59:47.647239
updated_at2022-08-04 09:02:34.134788
descriptionA user-space CPU limiter crate
homepagehttps://github.com/tehtris-hub/CpuLimit
repositoryhttps://github.com/tehtris-hub/CpuLimit
max_upload_size
id628135
size17,725
(fsavy-tehtris)

documentation

README

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();
Commit count: 24

cargo fmt