Profiling .NET Managed Code from the Command Line (Memory Profiling)

Related Topics

To profile .Net and managed Visual C++ code from the command line, type:

Purify [<Purify options>] /net <exename> [<arguments to exename>]

 

Where

Represents

Purify [<Purify options>]

The purify command followed by any options you want to use, such as /SaveData. For a list of options, click images\shortcut.gif

 

/net

Required to run managed code.

<exename>

The name of a managed executable file.

 

[<arguments to exename>]

Any arguments required by the program.

 

For example, to profile a managed program and save the memory profiling data, you can type:

purify /SaveData= myVBappTest1.pmy /net "C:\Documents and Settings\jsmith\DotNet Projects\myVBapp.exe"

Purify launches myVBapp.exe, and saves the collected memory profile data to the Purify memory profiling data file (.pmy) myVBappTest1.pmy, without opening the memory profiling main window.

(C) Copyright IBM Corporation 1992, 2010.