Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add the ability to turn on/off stats, dump them and clear them, when built with --enable-pystats #93841

Copy link
Copy link
Closed
@markshannon

Description

@markshannon
Issue body actions

This would only apply with --enable-pystats and thus #define Py_STATS. For normal builds nothing would change.

Add sys._stats_on(), sys._stats_off(), sys._stats_clear() and sys._stats_dump() functions.
This would allow us to record and dump stats for parts of a program.

This would be useful for experimentation and having stats match timings for pyperf, as we could turn on stats when starting the timer, and turn them off when stopping the timer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.