MCPcopy Create free account
hub / github.com/That3Percent/second-stack / total_bytes_allocated

Method total_bytes_allocated

src/lib.rs:194–202  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

192 /// How many bytes are allocated by all PoolAlloc that are currently owned.
193 #[cfg(test)]
194 fn total_bytes_allocated(&self) -> usize {
195 if let Some(top) = self.top {
196 { 0..=top }
197 .map(|i| { self.pools[i].bytes_total() })
198 .sum()
199 } else {
200 0
201 }
202 }
203
204}
205

Callers 1

Calls 1

bytes_totalMethod · 0.80

Tested by 1