Py-spy: A Powerful and User-Friendly Python Performance Profiling Tool
Py-spy: A low-overhead, Rust-based Python profiler for real-time performance analysis. No code changes needed, ideal for production debugging.
Py-spy is a powerful sampling profiler for Python programs that allows you to visualize the runtime consumption of your Python programs without needing to restart the program or modify the code.
Compared to other profiling tools, Py-spy has extremely low overhead because it is written in Rust, making it very fast, and it does not run in the same process as the Python program being profiled. This means Py-spy can be safely used on production Python code.