|
From: Oliver G. <ol...@gm...> - 2007-09-12 13:56:13
|
Hello, there are some notes on the net that Valgrind (Cachegrind) can be used for doing code coverage tests, but I was wondering exactly how that would be done... What would be the best way to see how much of my C++ code has been executed by Valgrind? Thanks, Oliver Gerlich |
|
From: Nicholas N. <nj...@cs...> - 2007-09-12 22:12:17
|
On Wed, 12 Sep 2007, Oliver Gerlich wrote: > there are some notes on the net that Valgrind (Cachegrind) can be used > for doing code coverage tests, but I was wondering exactly how that > would be done... What would be the best way to see how much of my C++ > code has been executed by Valgrind? If you run it and annotate the code, you can see which lines have been executed. However: (a) it cannot combine information from multiple executions (b) it doesn't give coverage percentages So it's limited. Nick |