Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-143946: Add more debug info inoptimize_uops#144262

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Fidget-Spinner merged 1 commit intopython:mainfromcocolato:add_debug_info
Jan 29, 2026

Conversation

@cocolato
Copy link
Contributor

@cocolatococolato commentedJan 27, 2026
edited by bedevere-appbot
Loading

In#143957, we can dump the stack and locals details when setPYTHON_OPT_DEBUG > 4. But it only print the details before we optimize the uops, add the debug info after the optimization is useful.

We can get some debug info like this now:

  61 abs: _STORE_ATTR_SLOT (0, target=2, operand0=0x10, operand1=0)    locals=[<Point slots[0] v131145 at 0x74b74d76d4e8>, <int val=0xcc8670 at 0x74b74d76d4b8>, <int val=0xcc8690 at 0x74b74d76d4c8>]    stack=[<int val=0xcc8670 at 0x74b74d76d4b8>, <Point slots[0] v131145 at 0x74b74d76d4e8>]  61 out: _STORE_ATTR_SLOT_NULL (0, target=2, operand0=0x10, operand1=0)    locals=[<Point slots[1] v131145 at 0x74b74d76d4e8>, <int val=0xcc8670 at 0x74b74d76d4b8>, <int val=0xcc8690 at 0x74b74d76d4c8>]    stack=[<Point slots[1] v131145 at 0x74b74d76d4e8>] stack_level 1  62 abs: _POP_TOP (0, target=2, operand0=0, operand1=0)    locals=[<Point slots[1] v131145 at 0x74b74d76d4e8>, <int val=0xcc8670 at 0x74b74d76d4b8>, <int val=0xcc8690 at 0x74b74d76d4c8>]    stack=[<Point slots[1] v131145 at 0x74b74d76d4e8>]  62 out: _POP_TOP_NOP (0, target=2, operand0=0, operand1=0)    locals=[<Point slots[1] v131145 at 0x74b74d76d4e8>, <int val=0xcc8670 at 0x74b74d76d4b8>, <int val=0xcc8690 at 0x74b74d76d4c8>]    stack=[] stack_level 0

@cocolatococolato changed the titleAdd more debug info inoptimize_uopsgh-143946: Add more debug info inoptimize_uopsJan 27, 2026
@cocolato
Copy link
ContributorAuthor

@Fidget-Spinner Hi, could please review this PR? Thanks!

@Fidget-Spinner
Copy link
Member

I'm very sorry. This PR is on my review list but I've been too busy these past few days.

cocolato reacted with heart emoji

@cocolato
Copy link
ContributorAuthor

Thanks for your reply! I can wait until you're free, and I'll find and take care of some other issues in the meantime.

@Fidget-SpinnerFidget-Spinner merged commit26996b5 intopython:mainJan 29, 2026
67 checks passed
@Fidget-Spinner
Copy link
Member

Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

@tomasr8tomasr8Awaiting requested review from tomasr8tomasr8 is a code owner

@Fidget-SpinnerFidget-SpinnerAwaiting requested review from Fidget-SpinnerFidget-Spinner is a code owner

@savannahostrowskisavannahostrowskiAwaiting requested review from savannahostrowskisavannahostrowski is a code owner

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@cocolato@Fidget-Spinner@aisk

[8]ページ先頭

©2009-2026 Movatter.jp