Enhance Py_STATS: statistics on Python performance · Issue #108753 · python/cpython · GitHub
Skip to content

Enhance Py_STATS: statistics on Python performance #108753

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

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

    type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions