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

Function fire_instruction

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

Source from the content-addressed store, hash-verified

916}
917
918pub fn fire_instruction(vm: &VirtualMachine, code: &PyRef<PyCode>, offset: u32) -> PyResult<()> {
919 fire(
920 vm,
921 EVENT_INSTRUCTION,
922 code,
923 offset,
924 &[vm.ctx.new_int(offset).into()],
925 )
926}
927
928pub fn fire_raise(
929 vm: &VirtualMachine,

Callers 1

execute_instrumentedMethod · 0.85

Calls 2

fireFunction · 0.85
new_intMethod · 0.45

Tested by

no test coverage detected