Docs.rs
sys_metrics-0.2.7
sys_metrics 0.2.7
Permalink
Docs.rs crate page
AGPL-3.0
Links
Documentation
Repository
Crates.io
Source
Owners
Martichou
Dependencies
glob ^0.3
normal
lazy_static ^1.4
normal
libc ^0.2
normal
serde ^1.0
normal
criterion ^0.4
dev
core-foundation-sys ^0.8
normal
io-kit-sys ^0.3
normal
mach ^0.3
normal
Versions
43.01%
of the crate is documented
Platform
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
sys_metrics
0.2.7
Module cpu
Structs
Functions
In crate sys_metrics
?
Module
sys_metrics
::
cpu
source
·
[
−
]
Expand description
CPU information
Structs
§
CpuStats
Struct containing cpu stats information.
CpuTimes
Struct containing cpu times information.
LoadAvg
Struct containing a cpu’s loadavg information.
Functions
§
get_cpufreq
Get the cpufreq as f64 (in MHz).
get_cpustats
Get basic
CpuStats
info the host.
get_cputimes
Get basic
CpuTimes
info the host.
get_each_cputimes
Get per core
CpuTimes
info the host.
get_loadavg
Returns the
LoadAvg
over the last 1, 5 and 15 minutes.
get_logical_count
Return the number of logical core the system has.
get_physical_count
Return the number of physical core the system has.