The first step in profiling and improving memory usage is to collect memory profiling data by running your .NET managed program under Purify.
As your program runs, Purify collects memory profiling data and displays run (thread) status and a memory allocation graph in a Data Browser window. When you have completed your testing, exit your program. Purify displays the data it has collected.
The procedure for collecting data depends on the language of the program you are monitoring and on the environment you are working in. Click one of the following links for specific instructions.
Run .NET and managed Visual C++ code:
§ from Purify standalone
§ from the command line
§ from Visual Studio using the Purify integration
Notes:
§ By default, Purify does not collect detailed object data. To collect and view detailed object data, in the PowerCheck tab in the Settings for <exename> dialog box, select Generate Object Reference Graph data.
§ You can save memory profiling data to a binary (.pmy) file that can be reopened in the memory profiling user interface, or to an ASCII text (.txt) file, that can be used with test harnesses or scripts.
§ Rational Runtime analysis tools use Byte Code Insertion (BCI) technology to instrument .NET managed code dynamically in memory. The instrumented files are not saved or reused.
(C) Copyright IBM Corporation 1992, 2010.