Feature Requests item #3553772, was opened at 2012-08-02 14:01
Message generated for change (Tracker Item Submitted) made by robld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=353382&aid=3553772&group_id=3382

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Robert Luberda (robld)
Assigned to: Nobody/Anonymous (nobody)
Summary: lcov: source files matching during *.info files creation

Initial Comment:
Hi

 geninfo iterates in the following loop over all files generated by gcov:
 foreach $gcov_file (sort(@gcov_list))
        {
                my $i;
                my $num;

                ($source, $object) = read_gcov_header($gcov_file);
                if (defined($source))
                {
                        $source = solve_relative_path($base_dir, $source);

It would be nice if geninfo would have an option to ignore $source that does 
not match certain file name pattern, i.e. if the next line would be something 
like
                        next unless matches_requested_filename_patterns($source)

This obvoiusly work similar quite to  --extract option of lcov, but I belive it 
would result in a big performance improvement, as gcov tends to generate lots 
of useless (from our point of view) files containg coverage data for system or 
external library headers. Then geninfo reads all the files, and wastes time and 
processor cycles to generate huge info file, most of which will be removed by 
lcov --extract. For a big C++ project the whole process of generating unit test 
coverage data takes several hours. I hope using the proposed approach will 
reduce the time significantly. 
The simillar thing can be done for reading gcno files for gathering initial 
coverage data.

I can try to create a patch, if you are interested in.

Thanks a lot,
robert



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=353382&aid=3553772&group_id=3382

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to