Permalink
Browse files

Note that --collect-jumps=yes should be used

  • Loading branch information...
1 parent b0d8322 commit 230d4932226b80e4f09ce422affb7e8bd729a9f1 Benjamin Meyer committed Dec 7, 2007
Showing with 5 additions and 3 deletions.
  1. +3 −3 README
  2. +2 −0 callgrind_coverage/main.cpp
View
6 README
@@ -21,8 +21,8 @@ callgrind_info
callgrind_coverage
Given a callgrind file and a source file, callgrind_coverage will output
- the code coverage of the the callgrind file over the source file including
- jumps.
+ the code coverage of the callgrind file over the source file including
+ jumps. Make sure when using valgrind you use --collect-jumps=yes
More information about callgrind can be found on the valgrind website: http://valgrind.org
@@ -35,4 +35,4 @@ callgrind_tools requires rpp to build so first use git to clone its repository a
git clone git://repo.or.cz/rpp.git
qmake
-make
+make
@@ -172,6 +172,8 @@ int main(int argc, const char **argv)
else
out << (int)((touchedConditions/(double)(jumps.count())*2) * 100);
out << "%" << endl;
+ if (jumps.isEmpty())
+ qWarning() << "No jumps recorded, make sure you use --collect-jumps=yes as a callgrind option.";
out << endl;
// Path coverage - Has every possible route through a given part of the code been executed?

0 comments on commit 230d493

Please sign in to comment.