Title: Add the ability to turn on/off stats, dump them and clear them, when built with `--enable-pystats` · Issue #93841 · python/cpython · GitHub
Open Graph Title: Add the ability to turn on/off stats, dump them and clear them, when built with `--enable-pystats` · Issue #93841 · python/cpython
X Title: Add the ability to turn on/off stats, dump them and clear them, when built with `--enable-pystats` · Issue #93841 · python/cpython
Description: 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 d...
Open Graph Description: 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() functi...
X Description: 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() functi...
Opengraph URL: https://github.com/python/cpython/issues/93841
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add the ability to turn on/off stats, dump them and clear them, when built with `--enable-pystats`","articleBody":"This would only apply with `--enable-pystats` and thus `#define Py_STATS`. For normal builds nothing would change.\r\n\r\nAdd `sys._stats_on()`, `sys._stats_off()`, `sys._stats_clear()` and `sys._stats_dump()` functions.\r\nThis would allow us to record and dump stats for parts of a program.\r\n\r\nThis 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.\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/markshannon","@type":"Person","name":"markshannon"},"datePublished":"2022-06-15T10:12:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/93841/cpython/issues/93841"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:030c5fdf-9335-9448-6438-e94b23223643 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDDC:511EE:943A6A:C72947:69697DBF |
| html-safe-nonce | b645f2152948da8cd6508a856efdd454a5d5dc6a62da3b1352a814789020dd8b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERERDOjUxMUVFOjk0M0E2QTpDNzI5NDc6Njk2OTdEQkYiLCJ2aXNpdG9yX2lkIjoiNzU3OTY5NzczNTMwMDM4MjE0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 169bf23b2661360e530d72d3fd8cc1b87993e57cb6e4bdec114e8e5febd7ac90 |
| hovercard-subject-tag | issue:1272000442 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/93841/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9091f3f5d73a3d3b2733067d064606c82af9c6f35e84ed43e44c05930f8237f9/python/cpython/issues/93841 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9091f3f5d73a3d3b2733067d064606c82af9c6f35e84ed43e44c05930f8237f9/python/cpython/issues/93841 |
| og:image:alt | 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() functi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markshannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width