Skip to content

Consider module names for Gecko profiler resources #161299

Open

Description

@makwana-akshat

Feature or enhancement

Problem

The Gecko reporter in profiling.sampling currently uses source file basenames for resource names.

When different packages contain files with the same basename, such as pkg_a/__init__.py and pkg_b/__init__.py, their resources may receive identical names, such as Resource: __init__.py.

This can make resources harder to distinguish when inspecting Gecko profiler output.

Proposed improvement

Consider using module names instead of source file basenames for Gecko resource names, so resources from different packages can be more easily distinguished.

This issue follows the discussion in #160982. That PR addresses preserving full source file paths in the function table; resource naming is a separate concern.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

#160982

Linked PRs

Activity

  1. makwana-akshat commented on Nov 4, 2026

    @makwana-akshat
    Author

    i would like to solve this issue. assign/

  2. added a commit that references this issue on Nov 5, 2026
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