Skip to content

gh-142927: Fix inverted flamegraph width#148568

Open
ivonastojanovic wants to merge 1 commit intopython:mainfrom
ivonastojanovic:inverted_flamegraph_width
Open

gh-142927: Fix inverted flamegraph width#148568
ivonastojanovic wants to merge 1 commit intopython:mainfrom
ivonastojanovic:inverted_flamegraph_width

Conversation

@ivonastojanovic
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.
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.

1 participant