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

Method is_profile_event

crates/vm/src/protocol/callable.rs:160–165  ·  view source on GitHub ↗

Whether sys.setprofile receives this event. In legacy_tracing.c, profile callbacks are only registered for PY_RETURN, PY_UNWIND, C_CALL, C_RETURN, C_RAISE.

(&self)

Source from the content-addressed store, hash-verified

158 /// In legacy_tracing.c, profile callbacks are only registered for
159 /// PY_RETURN, PY_UNWIND, C_CALL, C_RETURN, C_RAISE.
160 fn is_profile_event(&self) -> bool {
161 matches!(
162 self,
163 Self::Call | Self::Return | Self::CCall | Self::CReturn | Self::CException
164 )
165 }
166
167 /// Whether this event is dispatched only when f_trace_opcodes is set.
168 pub(crate) fn is_opcode_event(&self) -> bool {

Callers 1

_trace_event_innerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected