|
|
You can run the Jinsight visualizer using jinsight.bat. Here are three ways to do this:
jinsight GCExample1.trc
In some cases you may need to modify jinsight.bat for your environment. See Customizing jinsight.bat.
The Jinsight workspace window is the main window for Jinsight. You may use it to specify a trace file, to control the loading of the trace, and to choose the views you want to see.

Use the Load and Stop buttons at the bottom of the panel to start and stop the loading of the trace. The workpace window displays the trace file name you have specified and the number of events and percentage of the trace that have been loaded so far. Note that as you are loading the trace, any views that are open will not be refreshed until after you have stopped loading.
Under this menu are the functions Open Trace File..., Close Workspace, and Exit Jinsight. Closing the workspace window will close all views open in the workspace.
The functions Create New Workspace and Rename Workspace are described in the section Workspace Operations, and Blend Colors When Slices Overlap is described in Using Slices in Views.
Filtering events that are loaded into Jinsight.
You may choose to exclude events, of specified classes or beyond a specified stack depth, to reduce the amount of data Jinsight loads. This will unclutter some views, and it will forestall memory problems when viewing large traces.
Choose Set Trace Filter... to open a dialog box in which to specify which events to filter out. The default is to use all events in the trace. The initial dialog box shows suggestions of criteria by which you could filter out events:
- events whose class name begins, e.g., either with the prefix java/ or sun/, or
- events that occur at a call stack depth greater than, e.g., 10.
To filter out events, check the relevant boxes and specify the desired criteria.
When you filter out events by class name, the execution views will still show calls to these classes from unfiltered classes. If there is a call from any filtered class to an unfiltered class, the execution views will show the complete invocation sequence that gave rise to that call, independent of filtering.
Specify classes to exclude by typing one or more prefixes in the dialog box. Classes whose names begin with the prefix have their events excluded. For example,
java/awt/ java/io/will hide calls among classes in the awt and io packages. However, call sequences between these classes and unfiltered classes will be shown. You can use spaces, newlines, commas, or semicolons to separate the prefixes. Use slashes to separate package names.
Note that all aggregate measures of time and number of calls will reflect this filtering.
Displays reference documentation for Jinsight.
for Windows:
%JAVA_HOME%\bin\java.exe -mx%JINSIGHT_HEAP%
-classpath %JAVA_HOME%\lib\classes.zip;%SWING_HOME%\swingall.jar;
%JINSIGHT_HOME%\jinsight.jar;.
-DJINSIGHT_MAXHEAP=%JINSIGHT_HEAP%
-DJINSIGHT_BROWSER=%JINSIGHT_BROWSER%
-DJINSIGHT_DOC=.\%JINSIGHT_HOME%\docs\
jinsight.main.Jinsight %1
with typical Windows environment variables:
JAVA_HOME=c:\jdk1.1.8
SWING_HOME=C:\swing-1.1.1fcs
JINSIGHT_HOME=C:\jinsight2.0
JINSIGHT_HEAP=230M
JINSIGHT_BROWSER=c:\progra~1\netscape\communicator\program\netscape.exe
for AIX:
${JAVA_HOME}/bin/java -mx${JINSIGHT_HEAP}
-classpath ${JAVA_HOME}/lib/classes.zip:${SWING_HOME}/swingall.jar:
${JINSIGHT_HOME}/jinsight.jar:.
-DJINSIGHT_MAXHEAP=${JINSIGHT_HEAP}
-DJINSIGHT_BROWSER=${JINSIGHT_BROWSER}
-DJINSIGHT_DOC=${JINSIGHT_HOME}/docs/
jinsight.main.Jinsight "$@"
with typical AIX environment variables:
JAVA_HOME=/usr/jdk_base
SWING_HOME=~/swing-1.1.1fcs
JINSIGHT_HOME=~/jinsight2.0
JINSIGHT_HEAP=96M
JINSIGHT_BROWSER=/usr/local/bin/netscape
Notes on the above options and environment variables:
If instead you want to run the visualizer from the command line without using this command file, update your classpath to make the visualizer accessible to your Java run-time environment:
Windows: set CLASSPATH=%CLASSPATH%;%JINSIGHT_HOME%\jinsight.jar
AIX: export CLASSPATH=$CLASSPATH:${JINSIGHT_HOME}/jinsight.jar
Tracing
Tips
Jinsight Home