Skip to content

Commit

Permalink
Add support for collecting/visualizing Meminfo data
Browse files Browse the repository at this point in the history
  • Loading branch information
janaknat committed Jul 12, 2023
1 parent ca998e1 commit 5ba480b
Show file tree
Hide file tree
Showing 7 changed files with 566 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub mod interrupts;
pub mod sysctldata;
pub mod perf_stat;
pub mod processes;
pub mod meminfodata;
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub mod intel_perf_events;
#[cfg(target_arch = "aarch64")]
Expand All @@ -31,6 +32,7 @@ use interrupts::{InterruptData, InterruptDataRaw};
use sysctldata::SysctlData;
use perf_stat::{PerfStatRaw, PerfStat};
use processes::{ProcessesRaw, Processes};
use meminfodata::{MeminfoDataRaw, MeminfoData};

pub struct DataType {
pub data: Data,
Expand Down Expand Up @@ -202,7 +204,8 @@ data!(
InterruptDataRaw,
SysctlData,
PerfStatRaw,
ProcessesRaw
ProcessesRaw,
MeminfoDataRaw
);

processed_data!(
Expand All @@ -214,7 +217,8 @@ processed_data!(
InterruptData,
SysctlData,
PerfStat,
Processes
Processes,
MeminfoData
);

macro_rules! noop { () => (); }
Expand Down
Loading

0 comments on commit 5ba480b

Please sign in to comment.