I have a django wsgi application running on Apache on Linux.
I would like to get an overview of what is going on during an average day.
Some months ago I wrote a tool to see what the python interpreter is doing all day long: https://github.com/guettli/live-trace
It has a major draw-back: If the python interpreter is inside the GIL (Global Interpreter Lock), then no logging of stacktraces happen. This means the result is wrong.
Is there a different tool which helps me to see in which python source code lines the interpreter is most of the time?