Title: Collect pystats in subprocesses · Issue #263 · python/bench_runner · GitHub
Open Graph Title: Collect pystats in subprocesses · Issue #263 · python/bench_runner
X Title: Collect pystats in subprocesses · Issue #263 · python/bench_runner
Description: There are two ways in which "real work" that we'd want to measure ends up in a subprocess. Neither of these cases presently collects pystats in the subprocess. Using the pyperf.Runner.bench_command API (eg. python_startup). These should ...
Open Graph Description: There are two ways in which "real work" that we'd want to measure ends up in a subprocess. Neither of these cases presently collects pystats in the subprocess. Using the pyperf.Runner.bench_command...
X Description: There are two ways in which "real work" that we'd want to measure ends up in a subprocess. Neither of these cases presently collects pystats in the subprocess. Using the pyperf.Runner...
Opengraph URL: https://github.com/python/bench_runner/issues/263
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Collect pystats in subprocesses","articleBody":"There are two ways in which \"real work\" that we'd want to measure ends up in a subprocess. Neither of these cases presently collects pystats in the subprocess.\r\n\r\n- Using the `pyperf.Runner.bench_command` API (eg. `python_startup`). These should be handled automatically by [this update to pyperf](https://github.com/psf/pyperf/pull/197), we just need a new pyperf release and then update pyperformance and bench_runner to use it.\r\n\r\n- The benchmark itself fires off a subprocess to run something like a webserver (eg. `djangocms`). These benchmarks will need to be individually updated to enable pystats in the subprocess, under the right circumstances. It should basically amount to checking for `--hook pystats` on the commandline and then setting the envvar `PYTHONSTATS=1` in the subprocess. I can't think of a way to do that automatically for all of these, but there aren't that many, we should just update them individually. (This also requires the pyperf update above, first).\r\n\r\nCc: @brandtbucher ","author":{"url":"https://github.com/mdboom","@type":"Person","name":"mdboom"},"datePublished":"2024-09-05T15:43:29Z","url":"https://github.com/python/bench_runner/issues/263"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:1a4fe8e9-8230-00dd-55b5-74da8ee9aa1c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99D4:3F8AB1:441F395:566FFA4:6B021591 |
| html-safe-nonce | 5083946b314043a537a522f091333b7d78d53de6e2dbef5d2a830d9ca2e165d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUQ0OjNGOEFCMTo0NDFGMzk1OjU2NkZGQTQ6NkIwMjE1OTEiLCJ2aXNpdG9yX2lkIjoiNTIwMTM1ODQ1MjcwNTg1ODk2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5520863bea9b46af2799bfb029c62b1aa219961348e2252bc88fe8029903a8f8 |
| hovercard-subject-tag | issue:2508149382 |
| 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/bench_runner/263/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b93182621c6751cf6ccd13431832e316dd0e970ed5643091450cb4b135900a33/python/bench_runner/issues/263 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b93182621c6751cf6ccd13431832e316dd0e970ed5643091450cb4b135900a33/python/bench_runner/issues/263 |
| og:image:alt | There are two ways in which "real work" that we'd want to measure ends up in a subprocess. Neither of these cases presently collects pystats in the subprocess. Using the pyperf.Runner.bench_command... |
| 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 | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/bench_runner git https://github.com/python/bench_runner.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 656847333 |
| octolytics-dimension-repository_nwo | python/bench_runner |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 656847333 |
| octolytics-dimension-repository_network_root_nwo | python/bench_runner |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width