Copy
Create a script that analyzes and optimizes memory usage within a program. Include steps for identifying memory leaks, profiling different parts of the code, and implementing improvements. Ensure the script outputs clear and actionable insights. Use a straightforward approach to detail each phase of the process, and provide examples to illustrate common issues and their solutions.
This prompt can quickly and accurately assess your application’s memory usage, giving you precise insights to optimize performance and efficiency.