First, add the TAU performance component to the CCA path
$ cp $TAU_CMPT_ROOT/components/TauPerformance-1.7.3/TauMeasurement.cca \
install/share/cca
Next, add the following commands to construct the component assembly with the proxy component in place
Open components/tests/guitest.gen.rc, and add the
following lines to the end of the file.
repository get-global TauPerformance.TauMeasurement
create TauPerformance.TauMeasurement tau
create myProject.Driver driver
create myProject.Function function
create myProject.Integrator integrator
create myProject.IntegratorProxy IntegratorProxy
connect driver integrate IntegratorProxy IntegratorPortProvide
connect IntegratorProxy MeasurementPort tau MeasurementPort
connect IntegratorProxy IntegratorPortUse integrator integrate
connect integrator integrateThis function thisFunction
Now run the application with the Ccaffeine GUI or using the command-line interface by following the instructions in Section 2.1, “Using the GUI Front-End to Ccaffeine”.
You should see something like this:
Run the assembly by clicking the green "Run" button.
Now look in the local directory and you should file a file called
profile.0.0.0. This file contains profile
data for the last run. View it by executing
pprof and you should get output similar to
this:
Reading Profile files in profile.*
NODE 0;CONTEXT 0;THREAD 0:
----------------------------------------------------------------------------
%Time Exclusive Inclusive #Call #Subrs Inclusive Name
msec total msec usec/call
----------------------------------------------------------------------------
100.0 26 26 3 0 8826 \
IntegratorProxy::integrate double (in */double, in */double, in */int32_t)
Users are encouraged to visit and read the documentation for TAU available at http://www.cs.uoregon.edu/research/paracomp/tau/tautools/.