There are five different ways to start debugging memory:
1. Display the MemoryScape window by typing:
memscape
After MemoryScape displays its opening screen, you can begin adding programs and files to your memory debugging session. If you are running MemoryScape on a Macintosh, you can double-click on the program icon. Figure 33shows starting MemoryScape from a shell window and parts of screens you’ll use before you actually start debugging memory.
MemoryScape options are typed either first or second, depending on if you are also naming a file. In all cases, arguments to your program must be the last arguments on the command line.
Before you begin program execution, you may want to configure MemoryScape for the different kinds of activities that it can perform. For more information, see Task 3: "Setting MemoryScape Options". In most cases, the default options will meet your needs.
MemoryScape can provide memory information about a process only when the process is stopped. Therefore, when you ask for a report, MemoryScape stops execution. MemoryScape also stops execution when you ask for memory usage information. However, it quickly restarts execution after it collects usage information.
You will probably use the commands on the Home | Summary screens to stop and restart execution. The graph here either starts MemoryScape or adds more programs, Figure 34.