Skip to content

perf output should include line numbers #134023

@carl-mastrangelo

Description

@carl-mastrangelo

Feature or enhancement

Proposal:

When running Python 3.12 or later on Linux, it's possible to get profiling information on the process by running perf. This is helpful, but the output only includes the function names on the stack. It would be useful if the line numbers were included, to see what part of the function is causing the majority of the CPU usage.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions