I am a big fan of py-spy. This tool can show the stacktrace of a running python process.
Now I am searching for an alternative to the command-line tool "top" which allows me to call py-spy for a selected process easily. In the use case I call it top++
- I get a notification that something is wrong with server "foo"
- I execute "ssh root@foo"
- I call top++
- I see a strange python process
- I select the python process inside the top++ tool
- I hint a special key
- top++ calls
py-spy --pid NNNN
- I can see what the python interpreter is doing, scratch my head and find a solution.
- open source
- I need it for linux.
py-spy is only an example. Other tools should be callable, too. For example hunter.