Title: Make it possible to collect pystats of parts of runs · Issue #100143 · python/cpython · GitHub
Open Graph Title: Make it possible to collect pystats of parts of runs · Issue #100143 · python/cpython
X Title: Make it possible to collect pystats of parts of runs · Issue #100143 · python/cpython
Description: The --enable-pystats system has a couple of important shortcomings: When stats is turned off, stats aren't dumped (on quit or explicitly). Therefore, it's impossible to put sys._stats_on/sys._stats_off calls around tested code and get th...
Open Graph Description: The --enable-pystats system has a couple of important shortcomings: When stats is turned off, stats aren't dumped (on quit or explicitly). Therefore, it's impossible to put sys._stats_on/sys._stats...
X Description: The --enable-pystats system has a couple of important shortcomings: When stats is turned off, stats aren't dumped (on quit or explicitly). Therefore, it's impossible to put sys._stats_on/sy...
Opengraph URL: https://github.com/python/cpython/issues/100143
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make it possible to collect pystats of parts of runs","articleBody":"The `--enable-pystats` system has a couple of important shortcomings:\r\n\r\n- When stats is turned off, stats aren't dumped (on quit or explicitly). Therefore, it's impossible to put `sys._stats_on`/`sys._stats_off` calls around tested code and get the results out.\r\n- Since stats collection is on by default, it is very fiddly to exclude code for stats, especially for things that fire off subprocesses, e.g. pyperformance.\r\n\r\n@markshannon's [suggestion](https://github.com/faster-cpython/ideas/issues/511) is to:\r\n\r\n- Having stats off by default\r\n- Add an `-Xstats` flag to turn it on at startup\r\n- Always dump out stats\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-100144\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/mdboom","@type":"Person","name":"mdboom"},"datePublished":"2022-12-09T18:44:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/100143/cpython/issues/100143"}
| 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:fc00c080-3651-f70f-917c-25f46e4949b2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C70E:B6892:ECA505:142098D:6969F287 |
| html-safe-nonce | 901f8f068d2d8549201496977f3aacce0e72dcd5e09c0d5fb62281829f252f0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzBFOkI2ODkyOkVDQTUwNToxNDIwOThEOjY5NjlGMjg3IiwidmlzaXRvcl9pZCI6IjEwNDcyMzY4OTk2ODUxMzQ5ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 01eddb18fdcfb6b3c84bfac894dcfed099dd838f0d2f78c614b301f81f86bdea |
| hovercard-subject-tag | issue:1487253704 |
| 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/100143/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f210d6699e2114a3958ac10231ffa100a2526d6e702030f36462fa3afe7221a9/python/cpython/issues/100143 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f210d6699e2114a3958ac10231ffa100a2526d6e702030f36462fa3afe7221a9/python/cpython/issues/100143 |
| og:image:alt | The --enable-pystats system has a couple of important shortcomings: When stats is turned off, stats aren't dumped (on quit or explicitly). Therefore, it's impossible to put sys._stats_on/sys._stats... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdboom |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width