Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-profilingtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions