René's URL Explorer Experiment


Title: gh-138122: Add --subprocesses flag to profile child processes in tachyon by pablogsal · Pull Request #142636 · python/cpython · GitHub

Open Graph Title: gh-138122: Add --subprocesses flag to profile child processes in tachyon by pablogsal · Pull Request #142636 · python/cpython

X Title: gh-138122: Add --subprocesses flag to profile child processes in tachyon by pablogsal · Pull Request #142636 · python/cpython

Description: This adds the ability to automatically profile child processes spawned by the target when using the sampling profiler. When the --subprocesses flag is passed, a background monitor thread polls for new descendants of the target process and spawns separate profiler instances for each Python child it discovers. Each child profiler inherits the sampling options from the parent (interval, duration, thread selection, native frames, async-aware mode, output format) and writes to its own output file with the child's PID appended to the filename. There is a limit of 100 concurrent child profilers to prevent resource exhaustion when profiling applications that fork heavily. The --subprocesses flag is incompatible with --live mode since the curses interface cannot accommodate multiple concurrent profiler displays. This is useful for profiling applications that use multiprocessing, ProcessPoolExecutor, or other subprocess-based parallelism. Issue: gh-138122

Open Graph Description: This adds the ability to automatically profile child processes spawned by the target when using the sampling profiler. When the --subprocesses flag is passed, a background monitor thread polls for ...

X Description: This adds the ability to automatically profile child processes spawned by the target when using the sampling profiler. When the --subprocesses flag is passed, a background monitor thread polls for ...

Opengraph URL: https://github.com/python/cpython/pull/142636

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:b3de7272-831e-3c4d-90b8-e35489a035bb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB4BC:22FFB1:8120349:AFD732A:69963DAC
html-safe-nonce2ed6cc7fa45fdd884c0b041ef2e9449ed1b8fcf43b75c5af920c56c6c5a83707
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEJDOjIyRkZCMTo4MTIwMzQ5OkFGRDczMkE6Njk5NjNEQUMiLCJ2aXNpdG9yX2lkIjoiNTk2MDg0NzIyMTk2NDgxNTc4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac94530006dffa8436c6fda070a6e63bb2554dcc34cdf946258d59824951fd4f9f
hovercard-subject-tagpull_request:3096835879
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
twitter:imagehttps://avatars.githubusercontent.com/u/11718525?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/11718525?s=400&v=4
og:image:altThis adds the ability to automatically profile child processes spawned by the target when using the sampling profiler. When the --subprocesses flag is passed, a background monitor thread polls for ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonebb5fc598983958d677e5179b50e71c2bfa2a8ac1568110d429775cd645bbe799
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseddb60c6732f32ef004e33aed240bef867c5f545f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142636%2Fcommits%2F86cb186c91d9a5ca3c78f07443ab323dd0466c5e
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142636%2Fcommits%2F86cb186c91d9a5ca3c78f07443ab323dd0466c5e
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
Reloadhttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
Reloadhttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
pablogsal:tachyon-subprocesses-atomichttps://github.com/pablogsal/cpython/tree/tachyon-subprocesses-atomic
Conversation 31 https://github.com/python/cpython/pull/142636
Commits 20 https://github.com/python/cpython/pull/142636/commits
Checks 48 https://github.com/python/cpython/pull/142636/checks
Files changed https://github.com/python/cpython/pull/142636/files
Please reload this pagehttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
gh-138122: Add --subprocesses flag to profile child processes in tachyon https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#top
Show all changes 20 commits https://github.com/python/cpython/pull/142636/files
3e3c4e5 Fix _remote_debugging header include order and macOS compatibility pablogsal Dec 12, 2025 https://github.com/python/cpython/pull/142636/commits/3e3c4e5f7c9caaf77b95c0c419348f3436a01cfb
7dbf221 Add get_child_pids function to _remote_debugging module pablogsal Dec 12, 2025 https://github.com/python/cpython/pull/142636/commits/7dbf22111b03738faafd8f3193cd885adba15298
2d8c149 Add --children flag to profile child processes pablogsal Dec 12, 2025 https://github.com/python/cpython/pull/142636/commits/2d8c149b66ee32270f0314543f451529d6f543a4
e6ca9f9 Add tests for child process profiling pablogsal Dec 12, 2025 https://github.com/python/cpython/pull/142636/commits/e6ca9f9bdd40be837832656d76d3c7a96579dce8
238d4d0 Add NEWS entry pablogsal Dec 12, 2025 https://github.com/python/cpython/pull/142636/commits/238d4d0c4c63bfdfed60d521c256d44f4bbe807b
bc5dc46 Regenerate files pablogsal Dec 12, 2025 https://github.com/python/cpython/pull/142636/commits/bc5dc4651910dfcc78076790e2e48139e6080c43
a64cba3 Rename --children to --subprocesses pablogsal Dec 12, 2025 https://github.com/python/cpython/pull/142636/commits/a64cba30d27920d76245da9f5df55b80781bac9f
86cb186 Fix permission error in macOS pablogsal Dec 12, 2025 https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
d104fe6 (almost) as fast as Pablo StanFromIreland Dec 12, 2025 https://github.com/python/cpython/pull/142636/commits/d104fe6c589d320a9db15836c4d38d4a8d86019b
173422f Merge pull request #117 from StanFromIreland/tachyon-subprocesses-ato… pablogsal Dec 14, 2025 https://github.com/python/cpython/pull/142636/commits/173422f320f1166d09a3aacdda2017cffc8fd6bd
63d63f0 fixup! Merge pull request #117 from StanFromIreland/tachyon-subproces… pablogsal Dec 14, 2025 https://github.com/python/cpython/pull/142636/commits/63d63f0f892aec07167d5fa9f89bfa383a5040aa
42d5119 Simplify windows pablogsal Dec 14, 2025 https://github.com/python/cpython/pull/142636/commits/42d5119c571b4dfa76f7c7d2cafdfaf0b553b355
2ff40fc reduce indentation pablogsal Dec 14, 2025 https://github.com/python/cpython/pull/142636/commits/2ff40fcd722aff89e043eab77f3497e99d846546
f25a1c4 Merge remote-tracking branch 'upstream/main' into tachyon-subprocesse… pablogsal Dec 14, 2025 https://github.com/python/cpython/pull/142636/commits/f25a1c438fa166d3a783698ee0fd085926eae3a0
1e1b794 Unify checks for subprocess permissions pablogsal Dec 14, 2025 https://github.com/python/cpython/pull/142636/commits/1e1b7949dbb4f0346ee97f46d3187d10de2143b1
ab1753e Merge branch 'main' into tachyon-subprocesses-atomic pablogsal Dec 14, 2025 https://github.com/python/cpython/pull/142636/commits/ab1753e780a59d83ff39269f546d4b608b40d667
50b7c89 Apply suggestions from code review pablogsal Dec 14, 2025 https://github.com/python/cpython/pull/142636/commits/50b7c893bbf8addde5c08aec990e730d1f77acd0
e187121 fixup! Apply suggestions from code review pablogsal Dec 15, 2025 https://github.com/python/cpython/pull/142636/commits/e187121f5d60003e81a82a3f30340889ff64793f
284c6ca fixup! fixup! Apply suggestions from code review pablogsal Dec 15, 2025 https://github.com/python/cpython/pull/142636/commits/284c6ca62cf37ecb5f2c75b2a92a29e6de7bf60a
82fe5c8 Merge branch 'main' into tachyon-subprocesses-atomic pablogsal Dec 15, 2025 https://github.com/python/cpython/pull/142636/commits/82fe5c8d0d383dd1c3d0ebdb5dd472897e1029d6
Clear filters https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
Please reload this pagehttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
Please reload this pagehttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
Prev https://github.com/python/cpython/pull/142636/commits/a64cba30d27920d76245da9f5df55b80781bac9f
Next https://github.com/python/cpython/pull/142636/commits/d104fe6c589d320a9db15836c4d38d4a8d86019b
Please reload this pagehttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L555
Lib/test/test_profiling/test_sampling_profiler/test_children.pyhttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
View file https://github.com/pablogsal/cpython/blob/86cb186c91d9a5ca3c78f07443ab323dd0466c5e/Lib/test/test_profiling/test_sampling_profiler/test_children.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142636/commits/{{ revealButtonHref }}
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
https://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
Please reload this pagehttps://github.com/python/cpython/pull/142636/commits/86cb186c91d9a5ca3c78f07443ab323dd0466c5e
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.