Compile cpp file with debug options
g++ -ggdb -fprofile-arcs -ftest-coverage -o hello Hello.cpp
Try Running it
./hello
Run Code Coverage tool
gcov Hello.cpp
View the lines that will be executed
vi Hello.cpp.gcov
Tuesday, September 19, 2006
The Magician Of Linux
0 comments:
Post a Comment