Skip to content

Add --native-all flag that also print the stack of non-python threads #637

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

krfricke
Copy link
Contributor

@krfricke krfricke commented Nov 16, 2023

Similar to pystack's --native-all, this PR adds a flag with the same name to also print threads that may have been spawned from native extensions (but don't have an associated python interpreter).

Closes #332

@krfricke
Copy link
Contributor Author

@benfred I'm just going through some of my open PRs, is there any interest in merging this?

@d4l3k
Copy link

d4l3k commented Mar 21, 2025

This would be handy -- running into an issue where we have mixed threads from Python and rust and --native isn't working

@krfricke
Copy link
Contributor Author

@d4l3k the problem you're describing is likely resolved by #751

andrewjcg pushed a commit to andrewjcg/py-spy that referenced this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Profiling native threads?
2 participants