Next Previous Contents

2. Compiling vprof

2.1 Prerequisites

2.2 Obtaining vprof

The latest version of vprof and this document can be found on the vprof home page. Retrieve the tar file vprof-0.12.tar.gz and extract it with the following command

gunzip < vprof-0.12.tar.gz | tar xvf -

This will create a directory called vprof-0.12

2.3 Configuring vprof

The vprof package can be compiled in the source directory, vprof-0.12, created in the previous step, or you can make architecture specific directories for each machine for which you wish to compile vprof. To do the latter, create and change into the directory in which you want the object code and executable placed (e.g. vprof.i386) and run the configure script in the vprof-0.12 source code directory. All the make commands should be run from the object code directory.

The configure script takes several optional arguments that give the location of packages and commands that are used to build vprof:

You do not have to have Qt, PAPI, or X windows. Without Qt, only cprof will be built which provides a command line interface to the profiling information.

2.4 Testing vprof

Several test directories are provided to test various aspects of vprof. These tests are not run or compiled by default. Some of the tests may not compile for a given installation, depending on the system and configuration options. The following tests are available:


Next Previous Contents