develooper Front page | perl.perl5.porters | Postings from September 2006

Re: perl.gcov

Thread Previous | Thread Next
=?iso-8859-1?b?U+liYXN0aWVu?= Aperghis-Tramoni
September 26, 2006 01:01
Re: perl.gcov
Message ID:
Jim Cromie wrote:

> thanks, that gets me further, resulting build works a little:
> $ perl.gcov -Ilib -e 'print 1..10'
> 12345678910
> $ perl.gcov -Ilib -V:ld.*
> ld='cc';
> lddlflags='-shared -L/usr/local/lib';
> ldflags=' -fprofile-arcs -ftest-coverage -L/usr/local/lib';
> ldflags_uselargefiles='';
> ldlibpthname='LD_LIBRARY_PATH';
> ldflags_nolargefiles=' -fprofile-arcs -ftest-coverage -L/usr/local/lib';
> [jimc@harpo bleadperl]$
> [jimc@harpo bleadperl]$ perl.gcov -Ilib -e 'print 1..10'
> [jimc@harpo bleadperl]$ gcov pad.c
> pad.gcno:cannot open graph file

You can find the crude shell script I wrote to generate my Perl coverage[1]
here[2,3]. Abe Timmerman has improved it in order to also include non-XS
Perl modules in the coverage report[4]. I don't know where is the latest
version of his script but you can find a copy here[5]. I haven't been able
to successfully run it (but I haven't try very hard :)


S├ębastien Aperghis-Tramoni

Close the world, txEn eht nepO.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About