You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
line_profiler/Python_wrapper.h
Added back-port for `PyThreadState_GetInterpreter()` (doesn't matter
since we're only using it for Python 3.12+ anyway)
line_profiler/_line_profiler.pyx
disable_line_events()
Updated implemnentation to deal with wrappers created by
`_LineProfilerManager.wrap_local_f_trace()`
_LineProfilerManager.__call__(), .wrap_local_f_trace()
- Added annotations
- Now supporting disabling passing the events onto
`trace_func()` if the `.disable_line_events` attribute of the
wrapper is set to true
line_profiler/c_trace_callbacks.{c,h}
populate_callback()
Renamed from `fetch_callback()`
nullify_callback()
Added check against NULL
call_callback()
- Updated call signature; instead of loading
`line_profiler._line_profiler.disable_line_events()` by
importing the module and accessing the attribute, now just
taking it as an argument
- Simplified implementation
- Now using
`PyObject_SetAttrString(<PyObject *>py_frame, 'f_trace', ...)`
instead of directly manipulating `py_frame->f_trace` to ensure
that the appropriate side effects are invoked
set_local_trace()
Now using
`PyObject_SetAttrString(<PyObject *>py_frame, 'f_trace', ...)`
instead of directly manipulating `py_frame->f_trace` to ensure
that the appropriate side effects are invoked
monitoring_restart_version()
Now using `PyThreadState_GetInterpreter()` instead of directly
manipulating `tstate->interp`
0 commit comments