You can use py-spy to profile already running Python code without restarting your process or modifying the source code.
Category: Profiling
Profiling for performance
Thoughts on python, data science, and related tools.
Profiling for performance
You can use py-spy to profile already running Python code without restarting your process or modifying the source code.