Skip to content

Commit 89fe991

Browse files
Dan Schatzbergfacebook-github-bot
authored andcommitted
Add memory.numa_stat collection
Summary: As titled Reviewed By: brianc118 Differential Revision: D40528397 fbshipit-source-id: 31a3bdbc7772bad27a7e4fcecf10a2302257cafe
1 parent 1431af1 commit 89fe991

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

below/model/src/collector.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ fn collect_cgroup_sample(
393393
}
394394
},
395395
cgroup_stat: wrap(reader.read_cgroup_stat())?.map(Into::into),
396+
memory_numa_stat: wrap(reader.read_memory_numa_stat())?.map(Into::into),
396397
})
397398
}
398399

below/model/src/sample.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub struct CgroupSample {
3737
pub memory_events: Option<cgroupfs::MemoryEvents>,
3838
pub inode_number: Option<i64>,
3939
pub cgroup_stat: Option<cgroupfs::CgroupStat>,
40+
pub memory_numa_stat: Option<BTreeMap<u32, cgroupfs::MemoryNumaStat>>,
4041
}
4142

4243
#[derive(Default, Clone, PartialEq, Debug, Serialize, Deserialize)]

0 commit comments

Comments
 (0)