gh-120289: Add external timer in traverse of _lsprof.Profiler#121998
Merged
gaogaotiantian merged 1 commit intopython:mainfrom Jul 19, 2024
Merged
gh-120289: Add external timer in traverse of _lsprof.Profiler#121998gaogaotiantian merged 1 commit intopython:mainfrom
gaogaotiantian merged 1 commit intopython:mainfrom
Conversation
Member
Author
|
@colesbury maybe you could take a quick look at this? |
colesbury
approved these changes
Jul 19, 2024
Member
Author
|
Thanks! |
serhiy-storchaka
approved these changes
Jul 19, 2024
|
Thanks @gaogaotiantian for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Jul 19, 2024
…ythonGH-121998) (cherry picked from commit eaf094c) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Jul 19, 2024
…ythonGH-121998) (cherry picked from commit eaf094c) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
|
GH-122000 is a backport of this pull request to the 3.13 branch. |
|
GH-122001 is a backport of this pull request to the 3.12 branch. |
gaogaotiantian
added a commit
that referenced
this pull request
Jul 19, 2024
gaogaotiantian
added a commit
that referenced
this pull request
Jul 19, 2024
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It turned out that we did not include the external timer in
tp_traverse, and the external timer could be a container that causes a ref cycle - this could lead to ref leak.Confirmed that
./python -m test -R3:3 test_cprofilepassed after the change.