Profiling Java Code with Quantify Standalone

Related Topics

 

1.    Select your Java virtual machine (JVM) in the JVM tab of the Preferences dialog box if you have not done so already.

2.    Open the Run Program dialog box.

3.    In the Collect Data From box, select Java code.

4.    In Program name, click images\brbut.gif to select the name of the program you want to profile. Quantify enters the following information in the Run Program dialog box:

 

Program name

The name of the java viewer program specified in the Preferences dialog box, for example; java.exe, or appletviewer.exe.

Command-line arguments

Any switches or options for the viewer, followed by the name of the program you selected.

Working directory

The working directory to use for the current run.

5.    Click Settings to specify settings for this and future runs of the program.

6.    Click Run. Quantify starts profiling and displays the Run Summary window.

Notes:

§      For information about configuring your Java Runtime Environment for PurifyPlus, click images\shortcut.gif.

§      Quantify requires debug data to profile methods at the line level. For instructions for compiling Java code with debug data, refer to the documentation for your JVM.

§      To profile code launched from a container program, click images\brbut.gif in Program name to select the container program you want to use, then type any switches or options required for the container program, followed by the full path and filename of your java program in Command-line arguments.

§      You can also drag and drop a Java class file, jar file, or an HTML file onto the Quantify user interface to start profiling the Java code.

§      When you profile Java code launched by a container program, Quantify collects performance data for any Java applet that runs before your applet runs. If this occurs, use the Run Control toolbar to start and stop recording, and clear data, or use the corresponding Quantify API functions, to isolate the data for your applet.

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

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

(C) Copyright IBM Corporation 1993, 2009.