Skip to content

Enhance Py_STATS: statistics on Python performance #108753

@vstinner

Description

@vstinner

Feature or enhancement

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Proposal:

When Python is built with ./configure --enable-pystats, it always dump statistics at exit, even if statistics gathering was always off.

I propose adding PYTHONSTATS environment variable and only dump statistics at exit when python -X pystats or PYTHONSTATS=1 is used.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions