Content-Length: 300682 | pFad | https://github.com/python/cpython/issues/150258

5A Split "Percentage" in tachyon flamegraph tooltip UI to "Percentage of Root" and "Percentage of Selected" · Issue #150258 · python/cpython · GitHub
Skip to content

Split "Percentage" in tachyon flamegraph tooltip UI to "Percentage of Root" and "Percentage of Selected" #150258

@scottshambaugh

Description

@scottshambaugh

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

So, 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.

UI mockup for Flamegraph and Inverted Flamegraph, using the demo from here: https://docs.python.org/3.15/_static/tachyon-example-flamegraph.html:

Image Image

When at the root, the extra field can be dropped:

Image

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-profilingtype-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/150258

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy