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

Function update_use_tracing

crates/vm/src/stdlib/sys.rs:1406–1411  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1404 }
1405
1406 fn update_use_tracing(vm: &VirtualMachine) {
1407 let trace_is_none = vm.is_none(&vm.trace_func.borrow());
1408 let profile_is_none = vm.is_none(&vm.profile_func.borrow());
1409 let tracing = !(trace_is_none && profile_is_none);
1410 vm.use_tracing.set(tracing);
1411 }
1412
1413 #[pyfunction]
1414 fn set_coroutine_origin_tracking_depth(depth: i32, vm: &VirtualMachine) -> PyResult<()> {

Callers 4

setprofileFunction · 0.85
settraceFunction · 0.85
_settraceallthreadsFunction · 0.85
_setprofileallthreadsFunction · 0.85

Calls 3

is_noneMethod · 0.45
borrowMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected