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

Method stats

crates/vm/src/gc_state.rs:96–105  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

94 }
95
96 pub fn stats(&self) -> GcStats {
97 let guard = self.stats.lock();
98 GcStats {
99 collections: guard.collections,
100 collected: guard.collected,
101 uncollectable: guard.uncollectable,
102 candidates: guard.candidates,
103 duration: guard.duration,
104 }
105 }
106
107 pub fn update_stats(
108 &self,

Callers 1

get_statsMethod · 0.45

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected