Function
_settraceallthreads
(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
Tested by
no test coverage detected