5 ms·
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/
by winter_blue 3y ago
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.
- bobbyi 3y agoTheres 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 https://github.com/benfred/py-spy It's worked really well for my needs
- misnome 3y agopy-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
- vmiklos 3y agoI think it uses gdb's frame filter API: https://sourceware.org/gdb/onlinedocs/gdb/Writing-a-Frame-Filter.html https://sourceware.org/gdb/onlinedocs/gdb/Writing-a-Frame-Fi...
- fmajid 3y agoGDB itself is fully scriptable in Python: https://sourceware.org/gdb/current/onlinedocs/gdb.html/Python.html#Python https://sourceware.org/gdb/current/onlinedocs/gdb.html/Pytho...