memray
Profile memory usage of a Python application. tldr-pages
On several platforms
Several platforms
Run a Python file and track memory usage
memray run path/to/file.pyIdentifyRun a module and track memory usage
memray run -m module_nameIdentifySpecify an output name
memray run --output path/to/output_file.bin path/to/file.pyIdentifyDisplay a summary of memory usage
memray summary path/to/file.binIdentifyGenerate an HTML flamegraph
memray flamegraph path/to/file.binIdentify