René's URL Explorer Experiment


Title: Restore profiling child monitor Lib files with child PID enumeration by youknowdot · Pull Request #9496 · RustPython/RustPython · GitHub

Open Graph Title: Restore profiling child monitor Lib files with child PID enumeration by youknowdot · Pull Request #9496 · RustPython/RustPython

X Title: Restore profiling child monitor Lib files with child PID enumeration by youknowdot · Pull Request #9496 · RustPython/RustPython

Description: Scope Split the child-monitor Lib cohort from #8954: restore Lib/profiling/sampling/_child_monitor.py and Lib/test/test_profiling/test_sampling_profiler/test_children.py through actual scripts.update_lib migrate. Both files are byte-identical to pinned CPython d220409a13b77de7a6c30abe16ea90db01528edc; no additional skips, expected-failure markers, or weakened assertions are introduced. Add _remote_debugging.get_child_pids(pid, *, recursive=True) with native process snapshots and breadth-first descendant traversal: /proc on Linux/Android, libproc on macOS, and ToolHelp on Windows. Preserve platform snapshot ordering, suppress duplicate PIDs, release owned OS resources, distinguish allocation/unsupported states from OS errors, and preserve integer-index and truth-conversion ordering and user exceptions. No new dependency or dependency pin change. Deliberately partial profiling support This is PID enumeration plus canonical Lib restoration, not complete subprocess profiling. RemoteUnwinder still raises NotImplementedError. Restoring _child_monitor.py makes the CLI monitor import available, but does not make sampling or full --subprocesses E2E functional. The canonical test file has eight classes using the existing remote-debugging capability guard and a separately guarded argument-builder class. These guards are not changed or forced false. Full module import and effectful capability probing were not part of the bounded local checks; no observed eight-class skip or full-suite success is claimed. Validation Normal configured commit hooks passed, including Ruff, rustfmt, redundant-patch checking, and cspell. The final rebased head 7ec9c5afde9a906a87dedcaa5df76fe6356e4626 passed guarded offline locked check, strict Clippy, and CLI build with actual current-source VM opt-level 3 invocation and unchanged source/tool/config snapshots. Six bounded observations on that exact head: pinned CPython and RustPython each ran fixed native argument checks, one AST-extracted canonical argument-builder test, and an owned child/grandchild query. Every process exited 0 with empty stderr and all owned process groups removed. The helper test passed; all seven normalized child membership/uniqueness/type results matched. Argument comparisons: nine of ten rows match exactly. The extra-positional case has the same TypeError and no conversion callbacks, but retains a pre-existing generic binding wording difference: CPython get_child_pids() takes exactly 1 positional argument (2 given) versus RustPython get_child_pids expected 1 argument, got 2. No function-specific workaround or global formatter change is included. Earlier check failure (return-wrapper type) and strict Clippy failure (four std/core aliases) were fixed; failure logs were preserved and subsequent checks used explicit cache provenance. The branch is rebased on main c2bb4503 (#9494), with no conflict or profiler-file content change. Check (54.03 s), strict Clippy (55.92 s), CLI build (255.32 s), and all six observations were rerun on this new composition. Cached compiler artifacts were reused only after explicit inventory/owner verification; current-source VM recompilation was observed. Earlier original-base evidence remains separate. Only Linux x86_64 has been compiled locally. macOS/Windows compilation awaits CI; Android is source-reviewed only. Local checks do not cover permission/error branches, complete profiler tests, remote memory access, or full E2E behavior. CI success would not by itself establish CPython diagnostic or full profiler compatibility. AI assistance OpenAI Codex assisted with the implementation, canonical update_lib migration, source review, guarded validation, and this description. Validation boundaries and remaining unsupported behavior are stated above. Summary by CodeRabbit New Features Added get_child_pids to retrieve the process IDs of a process’s children, with recursive descendant lookup enabled by default and an option to return only direct children. Process-tree lookup is available on Linux, Android, macOS, and Windows. Unsupported platforms report that the feature is unavailable. Invalid process IDs and lookup failures are reported as Python exceptions.

Open Graph Description: Scope Split the child-monitor Lib cohort from #8954: restore Lib/profiling/sampling/_child_monitor.py and Lib/test/test_profiling/test_sampling_profiler/test_children.py through actual scripts.upda...

X Description: Scope Split the child-monitor Lib cohort from #8954: restore Lib/profiling/sampling/_child_monitor.py and Lib/test/test_profiling/test_sampling_profiler/test_children.py through actual scripts.upda...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9496

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:886a32a6-160f-6a6c-f087-57781fbeb848
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C08:EA06E:3AF41FA:4AE9D06:6B01E6BD
html-safe-nonced06635ccd75543d0d09cfe4a73ada0693faa9fc4dc7c0ff9311648d5070e8716
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzA4OkVBMDZFOjNBRjQxRkE6NEFFOUQwNjo2QjAxRTZCRCIsInZpc2l0b3JfaWQiOiI1NTIyNDIxNTMwMjU4MTcxNTgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacca5453f20689e9ed539c7efa8d2f7051c2462fc438b2201314a0d874aaad392d
hovercard-subject-tagpull_request:5096989864
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9496/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altScope Split the child-monitor Lib cohort from #8954: restore Lib/profiling/sampling/_child_monitor.py and Lib/test/test_profiling/test_sampling_profiler/test_children.py through actual scripts.upda...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9496/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9496%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9496%2Ffiles
Sign uphttps://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%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9496/files
Reloadhttps://github.com/RustPython/RustPython/pull/9496/files
Reloadhttps://github.com/RustPython/RustPython/pull/9496/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:python315-profiler-child-pids-20261031https://github.com/youknowdot/RustPython/tree/python315-profiler-child-pids-20261031
Conversation 9 https://github.com/RustPython/RustPython/pull/9496
Commits 1 https://github.com/RustPython/RustPython/pull/9496/commits
Checks 29 https://github.com/RustPython/RustPython/pull/9496/checks
Files changed https://github.com/RustPython/RustPython/pull/9496/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9496/files
Restore profiling child monitor Lib files with child PID enumeration https://github.com/RustPython/RustPython/pull/9496/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9496/files
7ec9c5a Restore profiling child monitor libraries with child PID enumeration codex Oct 31, 2026 https://github.com/RustPython/RustPython/pull/9496/commits/7ec9c5afde9a906a87dedcaa5df76fe6356e4626
Clear filters https://github.com/RustPython/RustPython/pull/9496/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9496/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9496/files
_child_monitor.py https://github.com/RustPython/RustPython/pull/9496/files#diff-8adb9b20df14c64c7b20053d5ef34c11c6bac6886fcf2c97b53e3954b3906d2f
test_children.py https://github.com/RustPython/RustPython/pull/9496/files#diff-7e9fec5e21826697b97ad17df5583ca56837d23f5ea1856c5a4e80dec1b18899
children.rs https://github.com/RustPython/RustPython/pull/9496/files#diff-c4667a7709f018958e9d46cec34aaec8c3bcf91576f88deadeab1cdfbe218403
mod.rs https://github.com/RustPython/RustPython/pull/9496/files#diff-9c22dc6f749111b05b6eec91a53ddc16edfd943052389fc8c77ea183c23f279a
_remote_debugging.rs https://github.com/RustPython/RustPython/pull/9496/files#diff-85457703ae6447f77c6323feabb7aa64c4839208de2ee7d6e27ad419207feba2
Lib/profiling/sampling/_child_monitor.pyhttps://github.com/RustPython/RustPython/pull/9496/files#diff-8adb9b20df14c64c7b20053d5ef34c11c6bac6886fcf2c97b53e3954b3906d2f
View file https://github.com/youknowdot/RustPython/blob/7ec9c5afde9a906a87dedcaa5df76fe6356e4626/Lib/profiling/sampling/_child_monitor.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9496/{{ revealButtonHref }}
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9496/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9496/files
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.