vprof. If you do not wish to use Qt, you can use the
command line interface, cprof, instead. The configuration
script looks for the Qt installation in /usr/local/qt and then in
the system directories, but you can override this when configuring
vprof. Qt 2.0.1 is provided with RedHat 6.1, but you may still
need to install the qt and qt-devel packages from the RedHat
distribution.
vprof has been tested with perfctr-2.1 and
linux-2.4.8-ac7. See the --with-perfctr configure option for how
to configure vprof to use the perfctr package.
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
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:
Specify the install directory.
Specify the C++ compiler.
Specify the C compiler.
Give include directories.
Give linker options.
Specify the directory where Qt is installed.
Specify the directory for the Linux source, patched to support perfctr. The default is to not use perfctr.
Specify the directory where PAPI is installed.
Do not build the runtime objects or library.
Specifies the size of unsigned long long when cross compiling.
Specifies the size of unsigned long when cross compiling.
Specifies the size of unsigned int when cross compiling.
Specifies the size of unsigned short when cross compiling.
Specifies the size of void * when cross compiling.
Do not build the analysis tools.
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.
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:
Tests having multiple source files in multiple directories.
Basic C++ tests.
Tests having source code in include files.
Tests the FORTRAN API.
Tests interoperability with POSIX threads.
Tests interoperability with MPI.
Tests interoperability with MPI/PMPI.