We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af0464e commit bf8f50aCopy full SHA for bf8f50a
crates/alloc/src/stats.rs
@@ -137,6 +137,11 @@ pub fn update_jemalloc_metrics() -> Result<(), Error> {
137
// Cumulative number of allocation requests satisfied by bin regions of the
138
// corresponding size class.
139
gauge("jemalloc_memory_bin_nrequests", bin_stats.nrequests);
140
+
141
+ let active = bin_stats.nmalloc - bin_stats.ndalloc;
142
143
+ gauge("jemalloc_memory_bin_nactive", active);
144
+ gauge("jemalloc_memory_bin_nactive_size", active * bin_const.size);
145
}
146
147
Ok(())
0 commit comments