FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-142927: Fix heatmap caller navigation for interior lines by pablogsal · Pull Request #143180 · python/cpython · GitHub

/ cpython Public

gh-142927: Fix heatmap caller navigation for interior lines - #143180

Merged
pablogsal merged 2 commits into
python:mainfrom
pablogsal:heatmap-fix
Jan 1, 2026
Merged

gh-142927: Fix heatmap caller navigation for interior lines#143180
pablogsal merged 2 commits into
python:mainfrom
pablogsal:heatmap-fix

Conversation

pablogsal commented Dec 25, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

The heatmap was only showing caller buttons on function definition
lines, not on interior lines within a function. This happened because
callers were recorded against the function definition line but looked
up by the current line number when building navigation buttons.

Added a line_to_function mapping to track which function each sampled
line belongs to. When building navigation buttons, callers are now
looked up via the function definition line so all lines in a function
show who calls that function. Callees remain line-specific since only
actual call sites should show what they call. Added tests covering
root, middle, and leaf frame behavior in call stacks.

Copy link
Copy Markdown
Member Author

CC: @ivonastojanovic @lkollar

The heatmap was only showing caller buttons on function definition
lines, not on interior lines within a function. This happened because
callers were recorded against the function definition line but looked
up by the current line number when building navigation buttons.

Added a line_to_function mapping to track which function each sampled
line belongs to. When building navigation buttons, callers are now
looked up via the function definition line so all lines in a function
show who calls that function. Callees remain line-specific since only
actual call sites should show what they call. Added tests covering
root, middle, and leaf frame behavior in call stacks.
pablogsal merged commit 513ae17 into python:main Jan 1, 2026
44 checks passed
pablogsal deleted the heatmap-fix branch January 1, 2026 19:06
pablogsal added the type-bug An unexpected behavior, bug, or error label Jan 1, 2026
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

Labels

skip news type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL