background image
<< To perform message based testing on a system | To run the application >>
<< To perform message based testing on a system | To run the application >>

To prepare for the example

Test RealTime - User Guide
·
Runtime Analysis using the Instrumentation Launcher
·
Calculating Metrics using the Metrics
Note These examples are for UNIX platforms only.
Runtime Analysis using the Instrumentation Launcher
This example demonstrates using Runtime Analysis features through the attolcc
Instrumentation Launcher. The example application is the Apache Web Server, which
is widely available for most platforms.
Additionally, the Apache Web Server is a multi-process, multi-tasking application
written in C where particular attention must be paid to tracking memory leaks.
To prepare for the example:
1. Download
the
apache_1.3.27.tar.gz archive of the Apache web server source
code from:
http://www.apache.org/dist/httpd/
2.
Copy the archive file to the directory where you will perform the tests (for
example, /projects/Apache_Test) and untar the archive:
cp /projects/download/apache_1.3.27.tar.gz .
tar zxvf apache_1.3.27.tar.gz
cd apache_1.3.27
3.
To set up the Test RealTime environnment, type the following command:
. <install_dir>/TestRealTime.2003.06.00/testrtinit.sh
where
<install_dir>
is the installation directory of the product.
Refer to the Rational Test RealTime Installation Guide for information about
setting up and launching the product.
To compile the application with the Runtime Analysis features
1.
To configure the Apache release, type the following command:
./configure --prefix=`pwd`
2.
To compile the Apache server with instrumentation, type the following
commands:
REP=`pwd`
make -C src/main gen_test_char
make CC="attolcc -mempro -perfpro -trace -proc=ret -block=l -keep --
atl_multi_process=1 --atl_traces_file=$REP/atlout.spt -- gcc"
This compiles the application with the following options:
322