Skip to content

Commit

Permalink
lcov: set default for branch coverage data to disabled
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Peter Oberparleiter authored and oberpar committed Jun 10, 2014
1 parent 7e04a15 commit 263de2b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin/genhtml
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions bin/geninfo
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions bin/lcov
Expand Up @@ -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);

Expand Down Expand Up @@ -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;


#
Expand Down
2 changes: 1 addition & 1 deletion lcovrc
Expand Up @@ -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
4 changes: 2 additions & 2 deletions man/lcovrc.5
Expand Up @@ -237,7 +237,7 @@ lcov_function_coverage = 1
.br
# processed.
.br
lcov_branch_coverage = 1
lcov_branch_coverage = 0
.br
.PP

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 263de2b

Please sign in to comment.