Comment on Debugging a Mixed Python and C Language StackparentComments−winter_blue3yWow, that's pretty amazing. I wonder how it's implemented, and if there are any tutorials on implementing something similar, for programming language designers/creators.−bobbyi3yTheres also Py Spy, a profiling tool that can generate flame charts containing a mix of python and C (or C++) calls.https://github.com/benfred/py-spyIt's worked really well for my needs−misnome3ypy-spy also makes it very easy to scrape from existing processes, which is invaluable if you are e.g. ever trying to diagnose a deadlock−vmiklos3yI think it uses gdb's frame filter API: https://sourceware.org/gdb/onlinedocs/gdb/Writing-a-Frame-Fi...−fmajid3yGDB itself is fully scriptable in Python:https://sourceware.org/gdb/current/onlinedocs/gdb.html/Pytho...
Comments
Wow, that's pretty amazing. I wonder how it's implemented, and if there are any tutorials on implementing something similar, for programming language designers/creators.
Theres also Py Spy, a profiling tool that can generate flame charts containing a mix of python and C (or C++) calls.
https://github.com/benfred/py-spy
It's worked really well for my needs
py-spy also makes it very easy to scrape from existing processes, which is invaluable if you are e.g. ever trying to diagnose a deadlock
I think it uses gdb's frame filter API: https://sourceware.org/gdb/onlinedocs/gdb/Writing-a-Frame-Fi...
GDB itself is fully scriptable in Python:
https://sourceware.org/gdb/current/onlinedocs/gdb.html/Pytho...