| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:c88da01a-6831-77b6-07ac-8eb3f65c2f5f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CEFE:1B64B9:4C568D:6404A9:69965444 |
| html-safe-nonce | 148e9a6d8c54d5a1294fa5e3ea52f82ab3b96c4e2d40d8f9da1330e39fd2291b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUZFOjFCNjRCOTo0QzU2OEQ6NjQwNEE5OjY5OTY1NDQ0IiwidmlzaXRvcl9pZCI6IjIxNTIyNTc3Njc5MTM5Njg3MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8c485fe4e4a7afdf405c0dee81b1c6220f87a98a079ddd2c4a452ad09f583846 |
| hovercard-subject-tag | pull_request:2678914780 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d |
| twitter:image | https://avatars.githubusercontent.com/u/791741?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/791741?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bb5fc598983958d677e5179b50e71c2bfa2a8ac1568110d429775cd645bbe799 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | 171966ace3e7ca5785ca7770e7adff7c50821654 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d |
| Reload | https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d |
| Reload | https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| pablogsal | https://github.com/pablogsal |
| python:main | https://github.com/python/cpython/tree/main |
| lkollar:sample-module | https://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 page | https://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 page | https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d |
| Please reload this page | https://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 page | https://github.com/python/cpython/pull/136777/commits/980c0f27cd4869a46ad932423f43a7103aa00f3d |
|
| https://github.com/lkollar |
| lkollar | https://github.com/python/cpython/commits?author=lkollar |
| Lib/profile/sample.py | https://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 |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |