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

gh-142927: Fix inverted flamegraph width by ivonastojanovic · Pull Request #148568 · python/cpython · GitHub

/ cpython Public

gh-142927: Fix inverted flamegraph width - #148568

Merged
pablogsal merged 1 commit into
python:mainfrom
ivonastojanovic:inverted_flamegraph_width
Apr 28, 2026
Merged

gh-142927: Fix inverted flamegraph width#148568
pablogsal merged 1 commit into
python:mainfrom
ivonastojanovic:inverted_flamegraph_width

Conversation

Copy link
Copy Markdown
Contributor

The inverted view used thread presence as a proxy for self time. This missed self samples on C-level wrapper frames like _run_code, where the node's thread always appears in its children too. Those samples were silently dropped, causing the chart to render narrower than full width. Now uses the explicit self field on each node instead of the thread heuristic.

CC: @pablogsal @lkollar

The issue:

Fix inverted flamegraph width — Currently shows narrow chart when leaves sum to small percentage, wasting screen space

The inverted view used thread presence as a proxy for self time.
This missed self samples on C-level wrapper frames like _run_code,
where the node's thread always appears in its children too. Those
samples were silently dropped, causing the chart to render narrower
than full width. Now uses the explicit self field on each node
instead of the thread heuristic.
pablogsal merged commit 993e204 into python:main Apr 28, 2026
56 checks passed
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL