Title: Split "Percentage" in tachyon flamegraph tooltip UI to "Percentage of Root" and "Percentage of Selected" · Issue #150258 · python/cpython · GitHub
Open Graph Title: Split "Percentage" in tachyon flamegraph tooltip UI to "Percentage of Root" and "Percentage of Selected" · Issue #150258 · python/cpython
X Title: Split "Percentage" in tachyon flamegraph tooltip UI to "Percentage of Root" and "Percentage of Selected" · Issue #150258 · python/cpython
Description: Feature or enhancement Proposal: Falls under #142927 When running profiling to identify bottlenecks, I rarely care about global percentage of runtime. For example, the profiling results in matplotlib/matplotlib#31059 show that ~40% of te...
Open Graph Description: Feature or enhancement Proposal: Falls under #142927 When running profiling to identify bottlenecks, I rarely care about global percentage of runtime. For example, the profiling results in matplotl...
X Description: Feature or enhancement Proposal: Falls under #142927 When running profiling to identify bottlenecks, I rarely care about global percentage of runtime. For example, the profiling results in matplotl...
Opengraph URL: https://github.com/python/cpython/issues/150258
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Split \"Percentage\" in tachyon flamegraph tooltip UI to \"Percentage of Root\" and \"Percentage of Selected\"","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nFalls under https://github.com/python/cpython/issues/142927\n\nWhen running profiling to identify bottlenecks, I rarely care about global percentage of runtime. For example, the profiling results in https://github.com/matplotlib/matplotlib/pull/31059 show that ~40% of test script runtime is dedicated to imports and module initialization, but I only care about the post-init functions. For that it's more useful to be able to drill down to different top level functions, and measure child percentages relative to that.\n\nSo, I would proposed renaming \"Percentage\" in the tachyon flamegraph tooltips to \"Percentage of Root\", and add a \"Percentage of Selected\" when the user has clicked in to a specific function.\n\nUI mockup for Flamegraph and Inverted Flamegraph, using the demo from here: https://docs.python.org/3.15/_static/tachyon-example-flamegraph.html:\n\n\u003cimg width=\"1302\" height=\"1142\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/2eb2b78c-9890-4077-b286-727912b8b5fc\" /\u003e\n\n\u003cimg width=\"1307\" height=\"587\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/58dd3dc7-607b-4619-83be-05557639a7e3\" /\u003e\n\nWhen at the root, the extra field can be dropped:\n\n\u003cimg width=\"1306\" height=\"645\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/3f62993f-248a-44ad-a1bc-5445358574be\" /\u003e\n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-150266\n* gh-150312\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/scottshambaugh","@type":"Person","name":"scottshambaugh"},"datePublished":"2026-05-22T16:48:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/150258/cpython/issues/150258"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e6d473f2-8133-4741-44cd-49081d736c0d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D636:1FF3C2:14D546A:1BC35AA:6A52B097 |
| html-safe-nonce | 9925b3415c6080d13fda6cd5459032be8933650544eed62eb0f6254f7473293f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjM2OjFGRjNDMjoxNEQ1NDZBOjFCQzM1QUE6NkE1MkIwOTciLCJ2aXNpdG9yX2lkIjoiNTQyMzE5MjUxNzEwMDM1MTYzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e327f01dda4f513b2912589d914f82e5bfe10205955c88e58facc227bc0fe78 |
| hovercard-subject-tag | issue:4504247622 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/150258/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4798b8751544aa1ae9be08beeb0491d5c7469e03d2b08947cab2e3c979091c22/python/cpython/issues/150258 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4798b8751544aa1ae9be08beeb0491d5c7469e03d2b08947cab2e3c979091c22/python/cpython/issues/150258 |
| og:image:alt | Feature or enhancement Proposal: Falls under #142927 When running profiling to identify bottlenecks, I rarely care about global percentage of runtime. For example, the profiling results in matplotl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scottshambaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width