You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add the ability to turn on/off stats, dump them and clear them, when built with --enable-pystats #93841
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.
Activity
markshannon commentedon Jun 15, 2022
#93843
GH-93841: Allow stats to be turned on and off, cleared and dumped at …
Revert 30935 defer bpo45162 to 312 (#94285)
hauntsaninja commentedon Oct 11, 2022
Thanks, looks like this has been completed