summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-06-20 16:46:05 +0200
committerNicholas Clark <nick@ccl4.org>2013-07-01 11:14:48 +0200
commit6f134219e62f92d49164bd77a437b3998fcc8288 (patch)
treeb6dbd97dfcf37b5c8258345e5de6ca7b2a6eb4fd
parente2aed43d53a90809e8b0dc1655d7a69ee8220f61 (diff)
downloadperl-6f134219e62f92d49164bd77a437b3998fcc8288.tar.gz
In perlhacktips, suggest a shell loop to generate all .gcov files.
-rw-r--r--pod/perlhacktips.pod7
1 files changed, 6 insertions, 1 deletions
diff --git a/pod/perlhacktips.pod b/pod/perlhacktips.pod
index 1051a25fb0..7851db939a 100644
--- a/pod/perlhacktips.pod
+++ b/pod/perlhacktips.pod
@@ -1180,7 +1180,12 @@ source code files, like this
which will cause F<sv.c.gcov> 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<gcov> include C<-b> which will summarise the basic
block, branch, and function call coverage, and C<-c> which instead of