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

Function fire_line

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

Source from the content-addressed store, hash-verified

907}
908
909pub fn fire_line(
910 vm: &VirtualMachine,
911 code: &PyRef<PyCode>,
912 offset: u32,
913 line: u32,
914) -> PyResult<()> {
915 fire(vm, EVENT_LINE, code, offset, &[vm.ctx.new_int(line).into()])
916}
917
918pub fn fire_instruction(vm: &VirtualMachine, code: &PyRef<PyCode>, offset: u32) -> PyResult<()> {
919 fire(

Callers 1

execute_instrumentedMethod · 0.85

Calls 2

fireFunction · 0.85
new_intMethod · 0.45

Tested by

no test coverage detected