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

Function _settraceallthreads

crates/vm/src/stdlib/sys.rs:1380–1385  ·  view source on GitHub ↗
(tracefunc: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1378
1379 #[pyfunction]
1380 fn _settraceallthreads(tracefunc: PyObjectRef, vm: &VirtualMachine) {
1381 let func = (!vm.is_none(&tracefunc)).then(|| tracefunc.clone());
1382 *vm.state.global_trace_func.lock() = func;
1383 vm.trace_func.replace(tracefunc);
1384 update_use_tracing(vm);
1385 }
1386
1387 #[pyfunction]
1388 fn _setprofileallthreads(profilefunc: PyObjectRef, vm: &VirtualMachine) {

Callers

nothing calls this directly

Calls 6

update_use_tracingFunction · 0.85
thenMethod · 0.45
is_noneMethod · 0.45
cloneMethod · 0.45
lockMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected