◐ Shell
clean mode source ↗

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

1st1

1st1

mpage

@1st1 1st1 marked this pull request as ready for review

October 2, 2024 20:37

Yury Selivanov added 8 commits

October 2, 2024 13:40
`f_generator` returns the generator / coroutine / async generator
object that owns the frame. For all other kinds of frames it will
return `None`.

This is useful to reconstruct call stack for async/await code.

picnixz

@pablogsal

exhaustedreader

@ambv ambv mentioned this pull request

Jan 22, 2025

ambv added a commit to ambv/cpython that referenced this pull request

Jan 22, 2025
…r tasks

This was missing from pythongh-124640. It's already covered by the new
test_asyncio/test_free_threading.py in combination with the runtime
assertion in set_ts_asyncio_running_task.

@ambv ambv mentioned this pull request

Jan 22, 2025

ambv added a commit that referenced this pull request

Jan 23, 2025
#129197)

This was missing from gh-124640. It's already covered by the new
test_asyncio/test_free_threading.py in combination with the runtime
assertion in set_ts_asyncio_running_task.

Co-authored-by: Kumar Aditya <kumaraditya@python.org>