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

Function fire_py_yield

crates/vm/src/stdlib/sys/monitoring.rs:846–859  ·  view source on GitHub ↗
(
    vm: &VirtualMachine,
    code: &PyRef<PyCode>,
    offset: u32,
    retval: &PyObjectRef,
)

Source from the content-addressed store, hash-verified

844}
845
846pub fn fire_py_yield(
847 vm: &VirtualMachine,
848 code: &PyRef<PyCode>,
849 offset: u32,
850 retval: &PyObjectRef,
851) -> PyResult<()> {
852 fire(
853 vm,
854 EVENT_PY_YIELD,
855 code,
856 offset,
857 &[vm.ctx.new_int(offset).into(), retval.clone()],
858 )
859}
860
861pub fn fire_call(
862 vm: &VirtualMachine,

Callers 1

execute_instrumentedMethod · 0.85

Calls 3

fireFunction · 0.85
new_intMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected