GH-91048: Add utils for capturing async call stack for asyncio programs and enable profiling by 1st1 · Pull Request #124640 · python/cpython · GitHub

github.com

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Async Call-Stack Reconstruction #91048

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

awaiting core review

awaiting core review

Add f_generator property to Python frame objects

Working implementation of asyncio.capture_call_stack()

Address Guido's comments

Add a comment for capture_call_stack()

Add a couple more tests

Remove setter for C impl of Task._awaited_by

Unbreak shield() and gather()

use private method for the policy

Avoid importing typing

Remove debug printing from test_asyncio.test_graph

gh-128002: use per threads tasks linked list in asyncio #128869

View reviewed changes

gh-91048: Add support for reconstructing async call stacks #103976

: Also clear and set ts->asyncio_running_task with eage…

gh-91048: Also clear and set ts->asyncio_running_task with eager tasks #129197

The compiler may optimise away globals with debug offsets #129223

: Also clear and set ts->asyncio_running_task with eager tasks (

gh-130052: Fix some exceptions on error paths in _testexternalinspection #130053

gh-132132: Upgrade LLVM on tail calling CI #132098

Datamodel's description of frameobject missing the new f_generator attribute #138191

asyncio.wait leaks completed tasks via the 3.14 await-graph when racing a long-lived Future (missing future_discard_from_awaited_by) #152569