-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-126425: Refactor _lsprof_Profiler_enable
#126426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Friendly reminder to amend PR title and description to match the actual change :) |
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
- Explicit memory management for `None` objects (since we still try to treat immortal objects as regular objects) - Respect possible errors of `sys.monitoring.register_callback` call (cherry picked from commit 7587260) Co-authored-by: sobolevn <mail@sobolevn.me>
Thanks a lot, everyone! |
GH-126442 is a backport of this pull request to the 3.13 branch. |
- Explicit memory management for `None` objects (since we still try to treat immortal objects as regular objects) - Respect possible errors of `sys.monitoring.register_callback` call (cherry picked from commit 7587260) Co-authored-by: sobolevn <mail@sobolevn.me>
GH-126443 is a backport of this pull request to the 3.12 branch. |
…6443) gh-126425: Refactor `_lsprof_Profiler_enable` (GH-126426) - Explicit memory management for `None` objects (since we still try to treat immortal objects as regular objects) - Respect possible errors of `sys.monitoring.register_callback` call (cherry picked from commit 7587260) Co-authored-by: sobolevn <mail@sobolevn.me>
…6442) gh-126425: Refactor `_lsprof_Profiler_enable` (GH-126426) - Explicit memory management for `None` objects (since we still try to treat immortal objects as regular objects) - Respect possible errors of `sys.monitoring.register_callback` call (cherry picked from commit 7587260) Co-authored-by: sobolevn <mail@sobolevn.me>
- Explicit memory management for `None` objects (since we still try to treat immortal objects as regular objects) - Respect possible errors of `sys.monitoring.register_callback` call
- Explicit memory management for `None` objects (since we still try to treat immortal objects as regular objects) - Respect possible errors of `sys.monitoring.register_callback` call
None
objects (since we still try to treat immortal objects as regular objects)sys.monitoring.register_callback
call_lsprof_Profiler_enable
#126425