Lab 10 Profile and Coverage
Summary: Report performance profile and test coverage in a programming assignment.
Steps:
- Choose one of the four assignments you have submitted (any IPA or GPA you have finished).
- Use tools to find the performance profile and test coverage of the assignment.
Java: Use Netbeans to find the profile and coverage, as explained in lectures on 10/20 and 11/05
C++: Add "-p" in Makefile to profile the program, as explained in lecture 10/20. For coverage, follow the lecture on 11/10:
- add "-fprofile-arcs -ftest-coverage" as g++ flags.
- execute the program.
- run "gcov" with the source code of the program.
Report:
- List the top 10 functions that take the most amounts of time. Also include the percentages of time spent on each function.
- List all functions (if any) that have not been tested and briefly explain the reasons. If all functions have been tested, briefly explain why your test can achieve the coverage.
Tools: You are not restricted to use Netbeans or g++. You can use other tools. Please explain which tools you use and the procedure to reproduce the results.
|