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)
| 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 { |