René's URL Explorer Experiment


Title: gh-135953: Profile a module or script with sampling profiler by lkollar · Pull Request #136777 · python/cpython · GitHub

Open Graph Title: gh-135953: Profile a module or script with sampling profiler by lkollar · Pull Request #136777 · python/cpython

X Title: gh-135953: Profile a module or script with sampling profiler by lkollar · Pull Request #136777 · python/cpython

Description: Add -m and filename arguments to the sampling profiler to launch the specified Python program in a subprocess and start profiling it. Previously only a PID was accepted, this can now be done by passing -p PID. Issue: gh-135953

Open Graph Description: Add -m and filename arguments to the sampling profiler to launch the specified Python program in a subprocess and start profiling it. Previously only a PID was accepted, this can now be done by pas...

X Description: Add -m and filename arguments to the sampling profiler to launch the specified Python program in a subprocess and start profiling it. Previously only a PID was accepted, this can now be done by pas...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:c88da01a-6831-77b6-07ac-8eb3f65c2f5f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCEFE:1B64B9:4C568D:6404A9:69965444
html-safe-nonce148e9a6d8c54d5a1294fa5e3ea52f82ab3b96c4e2d40d8f9da1330e39fd2291b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUZFOjFCNjRCOTo0QzU2OEQ6NjQwNEE5OjY5OTY1NDQ0IiwidmlzaXRvcl9pZCI6IjIxNTIyNTc3Njc5MTM5Njg3MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8c485fe4e4a7afdf405c0dee81b1c6220f87a98a079ddd2c4a452ad09f583846
hovercard-subject-tagpull_request:2678914780
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/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
twitter:imagehttps://avatars.githubusercontent.com/u/791741?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/791741?s=400&v=4
og:image:altAdd -m and filename arguments to the sampling profiler to launch the specified Python program in a subprocess and start profiling it. Previously only a PID was accepted, this can now be done by pas...
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
release171966ace3e7ca5785ca7770e7adff7c50821654
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136777%2Fcommits%2F980c0f27cd4869a46ad932423f43a7103aa00f3d
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%2F136777%2Fcommits%2F980c0f27cd4869a46ad932423f43a7103aa00f3d
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/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
Reloadhttps://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
Reloadhttps://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
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
lkollar:sample-modulehttps://github.com/lkollar/cpython/tree/sample-module
Conversation 25 https://github.com/python/cpython/pull/136777
Commits 14 https://github.com/python/cpython/pull/136777/commits
Checks 46 https://github.com/python/cpython/pull/136777/checks
Files changed https://github.com/python/cpython/pull/136777/files
Please reload this pagehttps://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
gh-135953: Profile a module or script with sampling profiler https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d#top
Show all changes 14 commits https://github.com/python/cpython/pull/136777/files
eada5f0 Profile a module or script with sampling profiler lkollar Jul 15, 2025 https://github.com/python/cpython/pull/136777/commits/eada5f0af8f169fabda28c776bb3e231281f0ec9
d8d035e Wait for interpreter to initialize in subprocess lkollar Aug 3, 2025 https://github.com/python/cpython/pull/136777/commits/d8d035e74ffd2d2b66d7090ae33f110d32b0d3ce
d99a39e Remove unnecessary argument check lkollar Aug 3, 2025 https://github.com/python/cpython/pull/136777/commits/d99a39e6647e46cde8f4df035a7923a9904a80e7
f97cc55 Handle the process runs shorter than expected lkollar Aug 3, 2025 https://github.com/python/cpython/pull/136777/commits/f97cc55707153a339e7f6062035cf8be449fbd71
18c4002 Improve ReadRemoteMemory error handling on macOS lkollar Aug 5, 2025 https://github.com/python/cpython/pull/136777/commits/18c40022e459f4c2993c875012e3bbffe2699340
980c0f2 fixup! Handle the process runs shorter than expected lkollar Aug 5, 2025 https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
5043171 fixup! Wait for interpreter to initialize in subprocess lkollar Aug 5, 2025 https://github.com/python/cpython/pull/136777/commits/50431712a225fc140a6b8115a0fb61b21c20f047
7832a7d fixup! fixup! Wait for interpreter to initialize in subprocess lkollar Aug 5, 2025 https://github.com/python/cpython/pull/136777/commits/7832a7ddd54674d28c60f8d2e549c0b4f4b997d1
c13a74d fixup! Improve ReadRemoteMemory error handling on macOS lkollar Aug 5, 2025 https://github.com/python/cpython/pull/136777/commits/c13a74dd66b7a9baf1e268b9a3c9f871b0c32e2d
2ce8a96 fixup! fixup! Wait for interpreter to initialize in subprocess lkollar Aug 5, 2025 https://github.com/python/cpython/pull/136777/commits/2ce8a9650ba1d6b4e35484d8c59a6d85ceb72573
1622ee3 fixup! fixup! Improve ReadRemoteMemory error handling on macOS lkollar Aug 6, 2025 https://github.com/python/cpython/pull/136777/commits/1622ee350b4106558d62b067316f1739c2f8df5c
0338ee1 Do not return error without an exception set pablogsal Aug 8, 2025 https://github.com/python/cpython/pull/136777/commits/0338ee12dc72b736598a9241cc6c7aaba8c8b640
2576f8b Protect against more errors with no exceptions pablogsal Aug 9, 2025 https://github.com/python/cpython/pull/136777/commits/2576f8bd9b6e5e87ed6bab75f8d6473b3e821939
3847fff Attempt to sync processes pablogsal Aug 9, 2025 https://github.com/python/cpython/pull/136777/commits/3847fff8a589f9cecf1d824f2d01b9dee4b0df6c
Clear filters https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
Please reload this pagehttps://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
Please reload this pagehttps://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
Prev https://github.com/python/cpython/pull/136777/commits/18c40022e459f4c2993c875012e3bbffe2699340
Next https://github.com/python/cpython/pull/136777/commits/50431712a225fc140a6b8115a0fb61b21c20f047
Please reload this pagehttps://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d
https://github.com/lkollar
lkollarhttps://github.com/python/cpython/commits?author=lkollar
Lib/profile/sample.pyhttps://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d#diff-5d08fcc8f71e82d12f11187e836a5a6fcee6bd970273e4605941f102efb45dae
View file https://github.com/lkollar/cpython/blob/980c0f27cd4869a46ad932423f43a7103aa00f3d/Lib/profile/sample.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/136777/commits/{{ revealButtonHref }}
https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d#diff-5d08fcc8f71e82d12f11187e836a5a6fcee6bd970273e4605941f102efb45dae
https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d#diff-5d08fcc8f71e82d12f11187e836a5a6fcee6bd970273e4605941f102efb45dae
https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d#diff-5d08fcc8f71e82d12f11187e836a5a6fcee6bd970273e4605941f102efb45dae
https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d#diff-5d08fcc8f71e82d12f11187e836a5a6fcee6bd970273e4605941f102efb45dae
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.