Skip to content

GH-150478: Add "show_jit" option to dis.dis to show jit entry points#150554

Merged
markshannon merged 1 commit into
python:mainfrom
markshannon:dis-show-jit
Jun 1, 2026
Merged

GH-150478: Add "show_jit" option to dis.dis to show jit entry points#150554
markshannon merged 1 commit into
python:mainfrom
markshannon:dis-show-jit

Conversation

@markshannon
Copy link
Copy Markdown
Member

@markshannon markshannon commented May 28, 2026

Adds a show_jit optional parameter to dis.dis.
When set (and adaptive also set) changes the output from this:

       L1:     FOR_ITER_RANGE           3 (to L2)
               STORE_FAST               1 (i)
               JUMP_BACKWARDS_JIT       5 (to L1)

to this (assuming the JIT is active):

       L1:     FOR_ITER_RANGE           3 (to L2)
               STORE_FAST               1 (i)
               ENTER_EXECUTOR           0

Copy link
Copy Markdown
Contributor

@diegorusso diegorusso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is useful indeed.

@markshannon markshannon merged commit 4996b99 into python:main Jun 1, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants