Crate getsys

Source
Expand description

§getsys - get some system stuff

CodeBerg license loc cratesv

Support: Linux.

Mainly made to have a simpler and straightforward interface, and backend.

§Features

§Cpu

  • cpu turbo boost state
  • average temperature
  • cpu percentage over an interval of Duration

§Per Cpu

§crates

  • glob 0.3.0

§Honorable Mentions

I have written this little library to fetch information I couldn’t get with other crates, but there are very nicely writen crates that provide information about the system that this crate doesn’t provide:

§Thoughts (these are not TODO’s)

  • release v2 (major version) that implements proper error handling using thiserror macros (This is still an idea, given that this lib only reads /sys fs, which should exist in order for this to work)
  • use num_cpus crate, instead of globing the results. This removes searching for the paths, and just directly write to it. Can also remove errors from a glob pattern, although it should not be a problem given how simple it is (../cpu[0-9]*/..)

Re-exports§

pub use self::cpu as Cpu;
pub use self::percpu as PerCpu;

Modules§

cpu
Cpu functions CPU related functions
percpu
PerCpu functions Per cpu information, rather than average or aggregates like Cpu