Ben Frederickson
Ben Frederickson
hmm - that does sound suspicious. Can you try disabling GC altogether and see if the problem still happens? Instagram does this https://instagram-engineering.com/dismissing-python-garbage-collection-at-instagram-4dca40b29172 and found some benefits. I'm wondering if...
yup - that definitely looks like it is GC issues. I don't quite know how to figure out if the target process is in a GC cycle right now -...
There is a prototype of this at #515 - this will display the percentage of samples in the `record` command spent in GC, and also has an option to exclude...
We have an option already to only profile threads holding the GIL (```--gil```). Have you tried this out? Also what OS/version of py-spy are you using? We should be doing...
Yeah - using --gil with --idle is pretty counterproductive (and probably should throw an error if you try to do that). In the meantime, if you're generating a flamegraph you...
@codypiersall I'm not sure what the best default here is, I'm tempted to leave as is for now just to avoid disruption. I'd like to make it so that people...
Hmm, we might want to tweak the build.rs script to download and build our own copy. We're doing that in travis ci for the musl version already: https://github.com/benfred/py-spy/blob/master/.travis.yml#L17-L25 Fwiw, the...
I'm working on something that will let you view flamegraph while the process is running. You'll need to install from the latest dev branch, but once you've done that you...
The latest version of py-spy (v0.2.0) defaults to column 3 now - not fully what you're looking for but hopefully a better default
@barskykd Are you running the python installed by OSX? I'm wondering if this issue is related to System Integrity Protection (https://github.com/benfred/py-spy/#why-am-i-having-issues-profiling-usrbinpython-on-osx). Fwiw, when I try the same on my OSX...