Monitoring Java Code with PureCoverage 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 monitor. PureCoverage automatically enters the correct information in the Run Program dialog box, as follows:

 

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. PureCoverage starts monitoring the code and displays the Run Summary window.

Notes:

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

§                  PureCoverage requires debug data to monitor methods at the line level or the function level. For instructions for compiling Java code with debug data, refer to the documentation for your JVM.

§                  To monitor 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 PureCoverage user interface to start monitoring the code.

§                  When you monitor applets launched by a container program, PureCoverage collects coverage 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 PureCoverage API functions, to isolate the data for your applet.

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

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

(C) Copyright IBM Corporation 1993, 2010.