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

can't produce meaningful graphs for my async application #235

Open
ScientiaEtVeritas opened this issue Sep 8, 2024 · 1 comment
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ScientiaEtVeritas
Copy link

I ran

austin -i 20ms -x 120 -p 8 -o sample.out

and got the following graph, and all it seems to show is hundreds of threads that spend their time in /usr/local/lib/python3.12/threading.py:Condition.wait:359.

image

When I try to run with austin -e -i 10ms -x 120 -p 10 -o sample.out, it says

😣 No samples collected.

For comparison, the output of py-spy which properly shows the asyncio run's loop and where it actually spends its time:

image

@P403n1x87
Copy link
Owner

@ScientiaEtVeritas thanks for reporting this. Austin doesn't have a proper async support. One thing you could try is the -s option to collect only the samples that are on CPU

austin -si 20ms -x 120 -p 8 -o sample.out

For better async profiling in general, you could try echion instead.

@P403n1x87 P403n1x87 added enhancement New feature or request help wanted Extra attention is needed labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants