MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_count

Method get_count

crates/vm/src/gc_state.rs:246–252  ·  view source on GitHub ↗

Get counts for all generations

(&self)

Source from the content-addressed store, hash-verified

244
245 /// Get counts for all generations
246 pub fn get_count(&self) -> (usize, usize, usize) {
247 (
248 self.generations[0].count(),
249 self.generations[1].count(),
250 self.generations[2].count(),
251 )
252 }
253
254 /// Get statistics for all generations
255 pub fn get_stats(&self) -> [GcStats; 3] {

Callers 3

test_get_countMethod · 0.80
get_countFunction · 0.80

Calls 1

countMethod · 0.45

Tested by 2

test_get_countMethod · 0.64