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

Method trace_event

crates/vm/src/protocol/callable.rs:200–210  ·  view source on GitHub ↗
(
        &self,
        event: TraceEvent,
        arg: Option<PyObjectRef>,
    )

Source from the content-addressed store, hash-verified

198 /// - For 'line'/'return' events: the return value can update `f_trace`
199 #[inline]
200 pub(crate) fn trace_event(
201 &self,
202 event: TraceEvent,
203 arg: Option<PyObjectRef>,
204 ) -> PyResult<Option<PyObjectRef>> {
205 if self.use_tracing.get() {
206 self._trace_event_inner(event, arg)
207 } else {
208 Ok(None)
209 }
210 }
211 fn _trace_event_inner(
212 &self,
213 event: TraceEvent,

Callers 5

fire_exception_traceMethod · 0.80
runMethod · 0.80
invokeMethod · 0.80
invoke_vectorcallMethod · 0.80
dispatch_traced_frameMethod · 0.80

Calls 2

_trace_event_innerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected