Profile memory pip install -r requirements.txt Run the code with command: python -m memory_profiler main.py Saves the memory usage logs to file memory_profile.log