Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeHahn committed Feb 6, 2025
1 parent b2b5d97 commit 7054bda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lading/src/observer/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub enum Error {
pub(crate) struct Sampler {
procfs_sampler: procfs::Sampler,
cgroup_sampler: cgroup::Sampler,
smaps_interval: u8,
}

impl Sampler {
Expand Down
3 changes: 2 additions & 1 deletion lading/src/observer/linux/procfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl Sampler {
self.process_info.retain(|pid, _| pids.contains(pid));

let pid = process.pid();
if let Err(e) = self.handle_process(process, &mut aggr).await {
if let Err(e) = self.handle_process(process, &mut aggr, include_smaps).await {
warn!("Encountered uncaught error when handling `/proc/{pid}/`: {e}");
}
}
Expand All @@ -143,6 +143,7 @@ impl Sampler {
&mut self,
process: Process,
aggr: &mut memory::smaps_rollup::Aggregator,
include_smaps: bool,
) -> Result<(), Error> {
let pid = process.pid();

Expand Down

0 comments on commit 7054bda

Please sign in to comment.