From 6f134219e62f92d49164bd77a437b3998fcc8288 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Thu, 20 Jun 2013 16:46:05 +0200 Subject: [PATCH] In perlhacktips, suggest a shell loop to generate all .gcov files. --- pod/perlhacktips.pod | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pod/perlhacktips.pod b/pod/perlhacktips.pod index 1051a25..7851db9 100644 --- a/pod/perlhacktips.pod +++ b/pod/perlhacktips.pod @@ -1180,7 +1180,12 @@ source code files, like this which will cause F to be created. The F<.gcov> files contain the source code annotated with relative frequencies of execution -indicated by "#" markers. +indicated by "#" markers. If you want to generate F<.gcov> files for +all profiled object files, you can run something like this: + + for file in `find . -name \*.gcno` + do sh -c "cd `dirname $file` && gcov `basename $file .gcno`" + done Useful options of F include C<-b> which will summarise the basic block, branch, and function call coverage, and C<-c> which instead of -- 1.8.3.1