background image
<< To perform runtime analysis on C | Source Code Parser command >>
<< To perform runtime analysis on C | Source Code Parser command >>

Java source code

Test RealTime - User Guide
Command Line Runtime Analysis for Java
The runtime analysis features for Java covered in this section include:
·
Performance Profiling
·
Code Coverage
·
Runtime Tracing
These features use Source Code Insertion (SCI) technology. Memory Profiling for
Java relies on JVMPI instead of SCI technology. Please refer to the JVMPI Agent
section of the Reference Manual.
The easiest way to implement SCI from the command line is to use the Java
Instrumentation Launcher:
javic
. The product provides two methods for use of javic:
·
Java Instrumentation Launcher: designed to fit directly into your compilation
sequence; simply add the javic command in front of your usual compilation or
link command line
·
Java Instrumentation Launcher for Ant: this integrates javic with the Apache
Jakarta Ant utility
For details of command line usage and option syntax, see the Reference Manual.
To perform runtime analysis on Java source code:
1.
First, set up the necessary environment variables. See Setting Environment
Variables.
2.
Edit your usual makefile by adding the Java Instrumentation Launcher to the
command line:
javic [-options] -- <compiler command line>
Where
<compiler command line>
is the command that you usually invoke to build
your application.
Please refer to the Instrumentation Launcher section of the Reference Manual for
information on the options and settings.
3.
After execution, to obtain the final test results, as well as any SCI dump
information, you need to separate the output file into separate result files. See
Splitting the SCI Dump File.
4. Finally,
launch
the
Graphical User Interface to view the test reports. See the
Graphical User Interface command line section in the Reference Manual..
318