Profiling .NET Managed Code in Purify Standalone (Memory Profiling)

Related Topics

 

1.    Open the Run Program dialog box.

2.    Select the Memory profiling data button.

3.    In Program name, click images\brbut.gif to select the name of the program you want to profile.

4.    In Command-line arguments, enter any arguments required by your program.

5.    Specify the working directory to use for the current run.

6.    Click Settings to specify settings for this and future runs of the program. If you want to view object details, in the PowerCheck tab, make sure Generate Object Reference Graph data is selected.

7.    Click Run. Purify will launch your program and begin collecting memory data. As your program runs, Purify shows run (thread) status and a memory allocation graph in a Data Browser window.

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.

§      To manually enter information into the Run Program dialog box, select the appropriate Collect Data From choice, then type in all of the associated information according to the above table.

§      You can also drag and drop a managed code executable file onto the memory profiling main window to start profiling the code.

§      To rerun the same program with the same settings, select File > Run Again or click images\runagain.gif

§      To stop profiling, select File > Cancel Run or click images\endproc.gif

§      You can also profile programs from the command-line, or from Visual Studio using the Purify integration.

§      In the Navigator, each aggregate run images\navexit.gif, snapshot, images\navsnap.gif and diff images\navdiff.gif entry represents a separate dataset which Purify keeps in memory until you either close the run, snapshot, or diff, or exit Purify. Since you normally use snapshots and diffs to perform your data analysis, you can conserve Purify memory by discarding the unneeded run datasets. Use the Workspace tab in the Preferences dialog box to change the default to automatically discard the aggregate run dataset after each program run.

§      If you want to conserve Purify memory but don't want to have Purify automatically discard the aggregate run datasets, you can discard them manually by double-clicking a run images\navexit.gif in the Navigator and selecting File > Close, or right-clicking the entry and selecting Close from the shortcut menu.

(C) Copyright IBM Corporation 1992, 2010.