From 263de2b40e21193ef8d11e899eb55aa52b17225d Mon Sep 17 00:00:00 2001 From: Peter Oberparleiter Date: Fri, 5 Oct 2012 12:00:57 +0000 Subject: [PATCH] lcov: set default for branch coverage data to disabled Collecting branch coverage data can significantly slow down coverage data collection and processing of data files. Assuming that most users are more interested in line/function coverage, change defaults to not collect/process branch coverage data. Users can still override this default using lcov_branch_coverage=1 in the lcovrc file or command line option --rc lcov_branch_coverage=1 --- bin/genhtml | 4 ++-- bin/geninfo | 4 ++-- bin/lcov | 4 ++-- lcovrc | 2 +- man/lcovrc.5 | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/genhtml b/bin/genhtml index 7b7c8ef8..e49ead0b 100755 --- a/bin/genhtml +++ b/bin/genhtml @@ -72,7 +72,7 @@ use Digest::MD5 qw(md5_base64); # Global constants our $title = "LCOV - code coverage report"; -our $lcov_version = 'LCOV version 1.10 pre (CVS $Revision: 1.63 $)'; +our $lcov_version = 'LCOV version 1.10 pre (CVS $Revision: 1.64 $)'; our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php"; our $tool_name = basename($0); @@ -298,7 +298,7 @@ our @funcview_sortlist; our @rate_name = ("Lo", "Med", "Hi"); our @rate_png = ("ruby.png", "amber.png", "emerald.png"); our $lcov_func_coverage = 1; -our $lcov_branch_coverage = 1; +our $lcov_branch_coverage = 0; our $cwd = `pwd`; # Current working directory chomp($cwd); diff --git a/bin/geninfo b/bin/geninfo index 18cd86c0..7ab987b1 100755 --- a/bin/geninfo +++ b/bin/geninfo @@ -61,7 +61,7 @@ if( $^O eq "msys" ) } # Constants -our $lcov_version = 'LCOV version 1.10 pre (CVS $Revision: 1.109 $)'; +our $lcov_version = 'LCOV version 1.10 pre (CVS $Revision: 1.110 $)'; our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php"; our $gcov_tool = "gcov"; our $tool_name = basename($0); @@ -247,7 +247,7 @@ our %opt_rc; our %compat_value; our $gcno_split_crc; our $func_coverage = 1; -our $br_coverage = 1; +our $br_coverage = 0; our $cwd = `pwd`; chomp($cwd); diff --git a/bin/lcov b/bin/lcov index b6616f41..393bd2a8 100755 --- a/bin/lcov +++ b/bin/lcov @@ -71,7 +71,7 @@ use Cwd qw /abs_path getcwd/; # Global constants -our $lcov_version = 'LCOV version 1.10 pre (CVS $Revision: 1.88 $)'; +our $lcov_version = 'LCOV version 1.10 pre (CVS $Revision: 1.89 $)'; our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php"; our $tool_name = basename($0); @@ -201,7 +201,7 @@ our $fn_overall_hit; our $br_overall_found; our $br_overall_hit; our $func_coverage = 1; -our $br_coverage = 1; +our $br_coverage = 0; # diff --git a/lcovrc b/lcovrc index 194282e2..e96b71c3 100644 --- a/lcovrc +++ b/lcovrc @@ -150,4 +150,4 @@ lcov_list_truncate_max = 20 lcov_function_coverage = 1 # Specify if branch coverage data should be collected and processed. -lcov_branch_coverage = 1 +lcov_branch_coverage = 0 diff --git a/man/lcovrc.5 b/man/lcovrc.5 index a007d943..3601d795 100644 --- a/man/lcovrc.5 +++ b/man/lcovrc.5 @@ -237,7 +237,7 @@ lcov_function_coverage = 1 .br # processed. .br -lcov_branch_coverage = 1 +lcov_branch_coverage = 0 .br .PP @@ -774,7 +774,7 @@ reduce the size of the resulting data files. Note that setting will override this option for HTML generation. .br -Default is 1. +Default is 0. .PP .SH FILES