-
Notifications
You must be signed in to change notification settings - Fork 439
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
Panic when profiling a python module with subprocesses #241
Comments
Thanks for the bug report! I think there was an issue when subprocesses exited that caused this - I put a fix in #265 that I believe should fix. Can you try it out? It's included in the latest development release |
Fixes the issue! Thank you! |
Awesome! Glad it's working for you. That dev release also contains a beta version of an embedded web server visualization - that lets you get live profile your program and view flamegraphs and view times on a line basis alongside the python source ( |
Cool! Works pretty well. When I enable --subprocess and --native, though, it seems to be too much information for the browser, it really chugs. |
FYI: 0.4.0.dev1 solves a similar issue with And congratulations for a great tool! |
First, let me say thank you for an awesome project! It gives me much better information than any python/native profiler I've tried before!
I'm seeing an issue similar to these comments, and I figured it deserved it's own issue:
#214 (comment)
#214 (comment)
I'm trying to profile a python module with a C++ backend. The python module and the C++ backend both use threads/subprocesses in different places. I'm using py-spy v0.3.3 installed via pip on Ubuntu 18.04.
For completeness, I'm running one of the TVM tutorials Testing against TVM will require a source build, but the example is completely open source, so it might be worth testing.
I see a crash with --subprocesses, but not with --native or a vanilla profile.
Any ideas? I'm not familiar enough with Rust to dive in at this point. Thanks!
The text was updated successfully, but these errors were encountered: