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

Function setprofile

crates/vm/src/stdlib/sys.rs:1348–1351  ·  view source on GitHub ↗
(profilefunc: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1346
1347 #[pyfunction]
1348 fn setprofile(profilefunc: PyObjectRef, vm: &VirtualMachine) {
1349 vm.profile_func.replace(profilefunc);
1350 update_use_tracing(vm);
1351 }
1352
1353 #[pyfunction]
1354 fn setrecursionlimit(recursion_limit: i32, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 2

update_use_tracingFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected