You can profile native-code (unmanaged), p-code, or Visual Basic.NET managed programs from the command line as follows:
For native-code programs:
quantify [<Quantify options>] <exename or modulename> [<arguments to exename>]
For p-code or Visual Basic .NET programs:
quantify [<Quantify options>] /net <exename> [<arguments to exename>]
Where |
Represents |
[<Quantify options>] |
Options you can specify after the quantify command. For a list of options, click |
/net |
Required for Visual Basic p-code and Visual Basic .NET programs |
<exename> or <modulename> |
Any native-code program or module, or any p-code or managed code program. Note: If you specify a native-code 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, to profile a native-code program, you can type:
quantify /SaveData native_vb_app.exe arg1 arg2
Quantify instruments and runs Native_vb_app.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.
To profile a p-code or a Visual Basic. NET managed program, you can type:
quantify /SaveData /net pcode_app.exe arg1 arg2
Quantify runs and collects performance data for the program, using 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 run programs from the command line, you must have the Rational/common directory in your PATH environment variable.
§ For consistent results, instrument and run your program on the same machine.
§ Line level performance data is not available when you profile a Visual Basic p-code program.
§ For mixed p-code and .NET programs, Quantify profiles only one type of code per run. By default, it profiles the type it encounters first. To override the default and force Quantify to profiles a specific type of code, use the qstart command with a switch to specify the language: /vb for p-code, /dotnet for .NET managed code. For example: qstart -vb <exename> [<arguments to exename>]
(C) Copyright IBM Corporation 1993, 2009.