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

Function set_threshold

crates/vm/src/stdlib/gc.rs:97–103  ·  view source on GitHub ↗
(threshold0: u32, threshold1: OptionalArg<u32>, threshold2: OptionalArg<u32>)

Source from the content-addressed store, hash-verified

95 /// Set the collection thresholds.
96 #[pyfunction]
97 fn set_threshold(threshold0: u32, threshold1: OptionalArg<u32>, threshold2: OptionalArg<u32>) {
98 gc_state::gc_state().set_threshold(
99 threshold0,
100 threshold1.into_option(),
101 threshold2.into_option(),
102 );
103 }
104
105 /// Return the current collection counts as a tuple.
106 #[pyfunction]

Callers

nothing calls this directly

Calls 3

gc_stateFunction · 0.85
set_thresholdMethod · 0.80
into_optionMethod · 0.80

Tested by

no test coverage detected