|
From: Nicholas N. <nj...@cs...> - 2005-04-26 22:01:27
|
On Tue, 26 Apr 2005, Benoit Peccatte wrote: > This is a first version of my coverage tool. > You can find it at http://b.peccatte.free.fr/cover-0.01.tgz > > To build it : > - extract cover.tgz into the valgrind directory > - add cover to Makefile.am in the 'TOOL = ...' line > - build as usualy > > To use it simply call valgrind withe --tool=cover > This produces a cover.pid file. This file can be read with cg_annotate > or kcachegrind. This is not really tested. It currently produces warnings > because I use ob= inappropriatly. > > I made a script to get clean summary of coverage information. > Simply run > ./cover cover.pid > ./cover -h will give you explanations on how to use it. Nice job. I've only scanned the code quickly so far, but I have three immediate questions: - Are you sure you're developing from the Subversion repository? It really looks to me like you're working from CVS. - Is a new output file generated for each execution? An important feature of coverage tools is that you want to be able to run a program multiple times, and get the total coverage from all the executions, not just a single one. So that way you can, for example, run your test suite with many tests and then at the end get a coverage figure. - Does cv_header.h need to be separate -- could its contents just be put into cv_main.c? Thanks for releasing this version! :) N |