Django: profile memory usage with Memray January 30, 2026 Articles Use Memray to profile Django startup, identify heavy imports like numpy, and reduce memory by deferring, lazy importing, or replacing dependencies.