summaryrefslogtreecommitdiffstats
path: root/src/app/data_harvester/memory.rs
blob: 18ac94cd130136eaf11aecfbf85dbbf494c1efc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Memory data collection.

pub mod sysinfo;
pub(crate) use self::sysinfo::{get_ram_usage, get_swap_usage};

#[cfg(feature = "gpu")]
pub mod gpu;

#[cfg(feature = "zfs")]
pub mod arc;

#[derive(Debug, Clone, Default)]
pub struct MemHarvest {
    pub total_kib: u64,
    pub used_kib: u64,
    pub use_percent: Option<f64>,
}