blob: 81a0db4c7acef3b8b63a815a4f720307ea949b04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//! Data collection for CPU usage and load average.
//!
//! For CPU usage, Linux, macOS, and Windows are handled by Heim.
//!
//! For load average, macOS and Linux are supported through Heim.
cfg_if::cfg_if! {
if #[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))] {
pub mod heim;
pub use self::heim::*;
}
}
pub type LoadAvgHarvest = [f32; 3];
|