]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-142927: Fix inverted flamegraph width (#148568)
authorivonastojanovic <80911834+ivonastojanovic@users.noreply.github.com>
Tue, 28 Apr 2026 16:42:21 +0000 (17:42 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Apr 2026 16:42:21 +0000 (17:42 +0100)
commit993e204ad44fd95ac522a7903f83a4bbe5d3af9c
treeb0a2067bc47aac5c35441b9765c9979394bc27f7
parent2b6a13710f0fbf90a0d5f009d7188e934fab8d08
gh-142927: Fix inverted flamegraph width (#148568)

Fix inverted flamegraph width

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.
Lib/profiling/sampling/_flamegraph_assets/flamegraph.js