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

Function set_debug

crates/vm/src/stdlib/gc.rs:126–128  ·  view source on GitHub ↗
(flags: u32)

Source from the content-addressed store, hash-verified

124 /// Set the debugging flags.
125 #[pyfunction]
126 fn set_debug(flags: u32) {
127 gc_state::gc_state().set_debug(gc_state::GcDebugFlags::from_bits_truncate(flags));
128 }
129
130 /// Return a list of per-generation gc stats.
131 #[pyfunction]

Callers

nothing calls this directly

Calls 2

gc_stateFunction · 0.85
set_debugMethod · 0.45

Tested by

no test coverage detected