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

Multi-threaded support? #117

Open
nckswt opened this issue Oct 12, 2018 · 2 comments
Open

Multi-threaded support? #117

nckswt opened this issue Oct 12, 2018 · 2 comments

Comments

@nckswt
Copy link

nckswt commented Oct 12, 2018

I'm generating and running a profile for a multi-threaded application using the following commands:

yappi -b -f pstat -o /tmp/script.prof script.py
snakeviz /tmp/script.prof

What I expect to see is the main loop function being called, along with any threads owned by the parent process. What I actually see is threading.py as the root function, and no calls to my main functions. I also can't tell if this is just profiling one of my threads, or all my threads.

Does snakeviz support pstat profiles from multi-threaded executables? Is there something I'm doing wrong? I've been going through whether yappi can generate multithreaded pstat profiles, but the documentation is.... sparse.

@jiffyclub
Copy link
Owner

This is an interesting question and not one I've experimented with. If you have a profile you can share I'd be interested to play around with it. I suspect this is similar to #116, where there are multiple "root" nodes and snakeviz only picks one.

@patrick91
Copy link

I think this applies to async as well!

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

No branches or pull requests

3 participants