Profiling Visual C++ Programs from the Command Line

Related Topics

You can run native (unmanaged) Visual C++ programs from the command line as follows:

quantify [<Quantify options>] <exename or modulename> [<arguments to exename>]

Where

Represents

[<Quantify options>]

Options you can specify after the quantify command. For a list of options, click images\shortcut.gif

<exename or modulename>

The program or module you want to instrument and run.

Note: If you specify a module other than an executable, Quantify instruments the module but does not run it.

[<arguments to exename>]

Arguments to pass to the program.

For example, you can type:

quantify /SaveData myapp.exe arg1 arg2

Quantify instruments and runs Myapp.exe with the specified arguments, arg1 and arg2, and saves the performance data to a Quantify data file (.qfy) without displaying any data analysis windows.

Notes:

§      To ensure consistent results, instrument and run your program on the same machine.

§      To run programs from the command line, you must have the Rational/common directory in your PATH environment variable.

(C) Copyright IBM Corporation 1993, 2009.