Linux Tools Project/GCov/User Guide
The Gcov plugin allows to visualize in eclipse gcov's output (aka *.gcda/*.gcno files).
For more details on gcov, visit the GNU Gprof documentation at http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Gcov.html .
Installation and Set-Up
Gprof plugin depends on binutils (such as addr2line, c++filt and nm). Gprof can be used on any platform as soon as these binutils are in PATH. For example, you can use it on windows with cygwin.
First of all, the user has to compile the C/C++ program with profiling enabled using "-ftest-coverage -fprofile-arcs" options prior to running the tool.
Opening gcov result
Gcov main view
The Gcov view displays an overview of coverage information for the whole project.
Several buttons are available in the toolbar.
- : "Export to CSV" button allows you to export the gcov result as a CSV text file, suitable for any spreadsheet.
- : "Sort coverage per folder" button displays gcov result sorted by folder.
- : "Sort coverage per file" button displays gcov result sorted by file.
- : "Sort coverage per function" button displays gcov result sorted by function.
- : "Create Chart..." button allows you to create a BIRT chart, with the current lines selected in the gcov result view.
Double-clicking on a item in the result view will open the corresponding source location, annotated with coverage informations.
tbd image tbd
If you encounter a problem with gcov plugin, please file a bug.