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

Method get_stats

crates/vm/src/gc_state.rs:255–261  ·  view source on GitHub ↗

Get statistics for all generations

(&self)

Source from the content-addressed store, hash-verified

253
254 /// Get statistics for all generations
255 pub fn get_stats(&self) -> [GcStats; 3] {
256 [
257 self.generations[0].stats(),
258 self.generations[1].stats(),
259 self.generations[2].stats(),
260 ]
261 }
262
263 /// Track a new object (add to gen0).
264 /// O(1) — intrusive linked list push_front, no hashing.

Callers 3

test_get_statsMethod · 0.80
getstatsMethod · 0.80
get_statsFunction · 0.80

Calls 1

statsMethod · 0.45

Tested by 2

test_get_statsMethod · 0.64
getstatsMethod · 0.64