Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coroutine stack tracking #7962

Merged

Conversation

kozlovsky
Copy link
Contributor

This PR fixes the logic of stack tracing for coroutines.

Python asyncio logic uses some optimizations when handling tasks and replaces the reference to the Task._wakeup() method with instances of C classes TaskWakeupMethWrapper or task_wakeup, depending on the Python version. It should be taken into account when determining whether the current handle relates to a task.

Also, the PR shows the exact duration for long coroutine steps.

@kozlovsky kozlovsky requested a review from xoriole April 10, 2024 07:47
@kozlovsky kozlovsky merged commit f88d449 into Tribler:release/7.14 Apr 10, 2024
16 checks passed
@kozlovsky kozlovsky deleted the fix/coroutine_stack_tracking branch April 10, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants