Memray is a memory profiler for Python. It can track memory allocations in Python code, in native extension modules, and in the Python interpreter itself.
py-spy is a low-overhead profiler for Python that lets you analyze your program’s performance in real-time, without modifying code or restarting, making it safe for production use.