python3 -X tracemalloc script.py

Category: Python & pip

python3 -X tracemalloc script.py

Trace memory allocations for debugging memory leaks

Enables memory allocation tracing so you can see what's using memory and find leaks.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.