1:BUILD_BY[name] student4 1:BUILD_ENVIRONMENT[operating system 32 vs 64] 1:END_BUILD_ENVIRONMENT 1:DEPENDENCIES[list of dependencies with where to get them] 1:END_DEPENDENCIES 1:NOTES[notes on attempted build] followed directions in README got error with: make : m_debuginfo/readstabs.c:56:39: fatal error: a.out.h: No such file or directory compilation terminated. 1:END_NOTES 2:BUILD_BY[name] student8 2:BUILD_ENVIRONMENT[operating system 32 vs 64] Ubuntu 12.04 64-bit 2:END_BUILD_ENVIRONMENT 2:DEPENDENCIES[list of dependencies with where to get them] ctags 5.8 from http://sourceforge.net/projects/ctags/files/ctags/5.8/ 2:END_DEPENDENCIES 2:NOTES[notes on attempted build] From aprof website (https://code.google.com/p/aprof/wiki/Install), it says: Please note that the README and INSTALL files in the source directory are the ones provided by Valgrind developers and they can give you different instructions (goal: system installation). The website says the following about compiling aprof: cd aprof-X.Y.Z ./build.sh However, I could not find build.sh in the source directory as well as the subdirectories. I tried to run ./configure as my last resort, but failed: $ ./configure configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." The build instructions provided on https://code.google.com/p/aprof/wiki/Install does not correspond to the version 0.1.0 of aprof. I then tried to download and install the latest version of aprof using SVN. svn checkout http://aprof.googlecode.com/svn/trunk/valgrind aprof In the source directory of aprof: $ ./build.sh ... ... ################################################################ # # You can run aprof on your program in the following way: # /lhome/student/repro_lab/CoppaDF12/aprof/inst/bin/valgrind --tool=aprof %YOUR_BINARY% # # You can run aprof-helper with: # /lhome/student/repro_lab/CoppaDF12/aprof/inst/bin/aprof-helper [OPTIONS] [report.aprof] # # # More info at: https://code.google.com/p/aprof/ # ################################################################ To test aprof, I wrote a simple hello world c program hw.c and compiled it to hw.out. $ cat hw.c #include int main() { printf("Hellow world!\n"); return 0; } $ gcc hw.c -o hw.out $ inst/bin/valgrind --tool=aprof ./hw.out ==19085== aprof-0.2.0, Input-sensitive Profiler - http://code.google.com/p/aprof/ ==19085== by Emilio Coppa, Camil Demetrescu, Irene Finocchi, Romolo Marotta ==19085== Using Valgrind-3.9.0.SVN and LibVEX; rerun with -h for copyright info ==19085== Command: ./hw.out ==19085== Hellow world! ==19085== Report: /lhome/student/repro_lab/CoppaDF12/aprof/hw.out_19085_0_4.aprof ==19085== $ cat hw.out_19085_0_4.aprof | less c ------------------------------------- c report generated by aprof (valgrind) c ------------------------------------- v 6 k 19398 e 1405731198 m bb-count i rms t 4 a ./hw.out f ./hw.out r "mempcpy" "/lib/x86_64-linux-gnu/ld-2.15.so" 24 p 24 3 7 7 7 49 1 7 7 7 7 49 p 24 4 7 7 7 49 1 7 7 7 7 49 p 24 6 8 8 8 64 1 8 8 8 8 64 p 24 10 7 7 7 49 1 7 7 7 7 49 ... ... ... So, it worked. Then, I tried to use aprof-plot to read the output of aprof. This time, I just used the archive from our repro reporsitory. I need ctags for aprof-plot. To install ctags: ./configure make sudo make install ctags was installed at /usr/local/bin/ctags aprof-plot can be run directly without installation. In the directory of aprof-plot: $ java -jar aprof-plot.jar And I got a GUI. I opened the file generated by aprof and it worked. 2:END_NOTES